1. Apart from trying to make all the hotkeys as robust as possible, including the obvious error handling (the not so obvious error handling is something I only discover when there's an error), is there a way to get alerted if the script is hung?
2. When the script hangs, obviously the hotkey to reload the script won't work - maybe a good solution is a separate ahk script with a hotkey to reload the first script?
Edit: Created a separate script with a hotkey to run my daily driver script (the latter has `#SingleInstance` so no worries about multiple instances).
Code: Select all
+#r::
{
Run("dailydriver.ahk /restart")
}
3. I have a couple of important hotkeys, where it's not obvious, without looking very closely, that they executed. For situations like this, is there an easy way to visually see that the hotkey worked? Nothing that interrupts flow like a MsgBox that I have to dismiss. Maybe the mouse cursor flashing or being highlighted for a couple of seconds?
Edit: Tooltip with a timer seems to be a good solution for this last issue. But if any other ideas, I'm all ears.