Post by garry » 27 Sep 2018, 10:38
Code: Select all
#warn
setworkingdir,%a_scriptdir%
Settitlematchmode,2
SetKeyDelay,20,20
sc=ahk_exe notepad.exe
IfWinNotExist,%sc%
Run,notepad,,,
IfWinNotActive ,%sc%,,WinActivate,%sc%
WinWaitActive,%sc%
Sleep 400
ControlSend ,,Some text`nNext line`n, %sc%
return
[code]#warn
setworkingdir,%a_scriptdir%
Settitlematchmode,2
SetKeyDelay,20,20
sc=ahk_exe notepad.exe
IfWinNotExist,%sc%
Run,notepad,,,
IfWinNotActive ,%sc%,,WinActivate,%sc%
WinWaitActive,%sc%
Sleep 400
ControlSend ,,Some text`nNext line`n, %sc%
return
[/code]