keep a script running after hotkey is pressed? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
donaldthejohn
Posts: 25
Joined: 27 Mar 2018, 20:23

keep a script running after hotkey is pressed?

29 May 2018, 10:54

Want to keep the script running after i press F4 so I can press it again to do the same thing.

Code: Select all

F4::
Send {enter}
Sleep 100
Send test
Sleep 350
Send {enter}
F5::ExitApp
I am a noob at coding, PLEASE be patient with me :D
Rohwedder
Posts: 7673
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: keep a script running after hotkey is pressed?  Topic is solved

29 May 2018, 11:19

Hallo,
try:

Code: Select all

F4::
Send {enter}
Sleep 100
Send test
Sleep 350
Send {enter}
Return
F5::ExitApp
User avatar
donaldthejohn
Posts: 25
Joined: 27 Mar 2018, 20:23

Re: keep a script running after hotkey is pressed?

29 May 2018, 11:44

Hello,
I swore i tried using return and it didnt work, maybe i put it somewhere improper. Either way thanks for helping me. It works!
I am a noob at coding, PLEASE be patient with me :D

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Bing [Bot], Chunjee, Joey5, sanmaodo and 278 guests