One of the very useful AutoHotkey features is the ability to add/modify scripts on the fly. This document is for those who are constantly editing their AutoHotkey file, adding new scripts or modifying existing ones.
Adding or modifying a script in your AHK file is a three-step process (edit, save, reload). The two scripts presented below will help you do it quicker.
Prepare your overlay
Copy/paste the following scripts in your AutoHotkey file template (Enterpad.ahk) at the chosen key location.
001: Edit Return
Copy/paste the following scripts in your AutoHotkey file template (Enterpad.ahk) at the chosen key location, even though I suggest you put it right next to your Edit script.
002: Send ^s Reload Return
If you want to make sure the Save & reload script does not reload without saving, you can add a delay between the save and reload commands in your script. It looks like this :
001: Send ^s Sleep, 1000 Reload Return
If you press the Save & reload script while you have an error in your script (for example if your forget to put ` in front of a percent sign in an URL) an error box will indicate you where is your error, what it is and it will tell you that the script was not reloaded. Therefore, the old version will remain in effect.