bin neu in die AHK-Materie eingestiegen und vielleicht kann mir jemand helfen.
Möchte nach dem Scriptstart/-durchlauf, dass man wieder ins erste Eingabefeld gelangt und diesen direkt wieder überschreiben kann, der Wert/Zelle also "blau" markiert ist.
Welche Befehle muss ich am Ende meines Scripts noch hinzufügen?
Vielen Dank im Voraus.
Code: Select all
#NoEnv
SetBatchLines, -1
Gui, Add, Text, x6 y7 w75 h20 , NL:
Gui, Add, Text, x6 y32 w75 h20 , Datum TT.MM:
Gui, Add, Edit, x95 y7 w60 h20 vNL,
Gui, Add, Edit, x95 y32 w60 h20 vDatum,
Gui, Add, Button, x6 y70 w90 h30 gAccept, START
Gui, Add, Button, x126 y70 w90 h30 gExit, Abbrechen
Gui, Add, GroupBox, x6 y50 w200 h10 ,
Gui, Show, x800 y250 h110 w220, Eingabefenster
GuiControl, +Default, START
Return
Exit:
GuiClose:
ExitApp
Accept:
Gui, Submit, NoHide ; Daten werden in den Variablen gespeichert.
Run, notepad.exe ; gehe davon aus das ich WinWait einfügen muss für SAP
WinWait, Unbenannt - Editor
IfWinNotActive, Unbenannt - Editor, WinActivate, Unbenannt - Editor
WinWaitActive, Unbenannt - Editor
Sleep, 300
SendInput, %NL%
Send, {Enter}
SendInput, %Datum%
Return