In SciTE4AutoHotkey, I added the following line to my script:
#SingleInstance Force ; When reloading the script, skips the dialog box and replaces the old instance automatically, which is similar in effect to the Reload command.
As a result, when I click the Run script button or press the F5 hotkey in SciTE4AutoHotkey, the old instance of my script is replaced with a new instance without prompting me. Nice.
The problem: While clicking on the Run script button always does the job, pressing the F5 hotkey only sometimes works. In other words, pressing the F5 hotkey doesn't reload the script about 40% of the time.
It is worth mentioning that this problem only occurs when the