Code: Select all
^+a::If (Z := !Z)
ToolTip, Z = %Z%
Return
Related
Code: Select all
^+a::If (Z := !Z)
ToolTip, Z = %Z%
Return
Code: Select all
^+a::
If (Z := !Z)
Return ; the implicit
else
ToolTip, Z = %Z%
Return
Code: Select all
^+a::If (Z := !Z) Return ; the implicit
else
ToolTip, Z = %Z%
Return
Code: Select all
z = %1%
return
^+a::
If (Z := !Z)
msgbox true Z = %Z%
else
msgbox false z = %z%
return
^+b:: If (Z := !Z)
msgbox true Z = %Z%
else ; error shown for this "hanging" else
msgbox false z = %z%
Return
For me, that means implicitly, that two-line constructions like non-traditional If cannot be used with it.https://www.autohotkey.com/docs/Hotkeys.htm#Intro wrote:However, if a hotkey needs to execute only a single line, that line can be listed to the right of the double-colon.
As I understand it, Listlines and error messages report implicit returns on the line number that causes this return to be inserted.
Code: Select all
x := "" ; 001
1::MsgBox ; 003
2::Listlines ; 004
Code: Select all
001: x := ""
003: Return (1.47)
003: MsgBox (0.91)
003: Return (0.38)
004: ListLines
Users browsing this forum: No registered users and 23 guests