Code: Select all
^+r::
If WinActive("ahk_shortcuts.ahk") ; this will be called when I run the shortcut when my active window is my script in VS Code
{
Send ^s ; send ctrl s
saved= Saved
Sleep 1000
}
TrayTip Reloaded, %saved% ✔
Sleep 1000
#SingleInstance Force
Reload
return
Any idea how I can only reload only once ? (without using an external file that store a value, and then when my script start it will check this value and if set to true, then set it to false and reload again).