Code: Select all
#z:: ; Win-Z
^#z:: ; Ctrl-Win-Z
{
MsgBox "A Win-Z hotkey was pressed."
if GetKeyState("Ctrl")
return ; Finish early, skipping the function call below.
MyFunction()
}
I've always had trouble remembering to add empty returns to everything, coming from a C++ background where its not required. I'm also a coder that absolutely has to add comments above every line of code explaining what's happening, and there is absolutely nothing meaningful to comment about an empty return
Example of one of my functions:
Code: Select all
Hotex(com)
{
; clear tic states after every command (do this BEFORE sending the hot-key, in case the key some how triggers more changes)
LinkTic := TicNONE
; send command & return
Send( com )
; TODO: DISPLAY NAME OF COMMAND
; done
return
}