i want reload a script by a code exactly like i reload it in the picture below
i know i can use reload, but its keeps reloading the script non stop and i want it to reload it only one time
smaple code below do it like i want,
reload it only one time but it requires to press alt+ctrl+r to make it
Code: Select all
;Reload the current AutoHotKey script
^!r::
SplashTextOn, , , Reloading....
Reload
Sleep 1000 ; If successful, the reload will close this instance during the Sleep, so the line below will never be reached.
SplashTextOff
MsgBox, 4,, The script could not be reloaded. Would you like to open it for editing?
IfMsgBox, Yes, Edit
return
thanks in advance