Label, definition of
Posted: 16 Mar 2020, 08:14
A hotkey is a label. While the LABELs help section does not state so EXPLICITLY, it does put it thusly:
MyHotkeyLabel:: msgbox Hi Joe
Before that Label says:Hotkey and hotstring labels are also valid targets for Goto, Gosub and other commands.
The last proviso is incorrect, inasmuchas it does not apply to a one-line hotkey defintion, for example:A label identifies a line of code, and can be used as a Goto target or to form a subroutine.
LabelName:
To create a label, write the label name followed by a colon as shown above. Aside from whitespace and comments, no other code can be written on the same line.
MyHotkeyLabel:: msgbox Hi Joe