Thanks swagfag. Apparently I fell for the incorrect v2 help file. In v1
return ends the hotkey, the comment is correct:
Code: Select all
^n:: ; CTRL+N hotkey
Run, notepad.exe ; Run Notepad when you press CTRL+N.
return ; This ends the hotkey. The code below this will not get triggered.
Code: Select all
^b:: ; CTRL+B hotkey
Send, {Ctrl down}c{Ctrl up} ; Copies the selected text. ^c could be used as well, but this method is more secure.
SendInput, [b]{Ctrl down}v{Ctrl up}[/b] ; Wraps the selected text in BBCode tags to make it bold in a forum.
return ; This ends the hotkey. The code below this point will not get triggered.
the comments or the example code in v2 help doc is incorrect though:
Code: Select all
^n:: ; CTRL+N hotkey
{
Run "notepad.exe" ; Run Notepad when you press CTRL+N.
} ; This ends the hotkey. The code below this will not get triggered.
Code: Select all
^b:: ; CTRL+B hotkey
{
Send "{Ctrl down}c{Ctrl up}" ; Copies the selected text. ^c could be used as well, but this method is more secure.
SendInput "[b]{Ctrl down}v{Ctrl up}[/b]" ; Wraps the selected text in BBCode tags to make it bold in a forum.
} ; This ends the hotkey. The code below this point will not get triggered.
I'd appreaciate if a native speaker could fix the v2 help file comments and / or exmple code. Cheers.