Code: Select all
var := true Hotkey if, winexist("ahk_exe Explorer.EXE") and (var) Hotkey F2, on return #if winexist("ahk_exe Explorer.EXE") and (var) F2:: msgbox yes #if *Esc:: ExitApp
fixed it by changing 'and' to '&&', but can't we use 'and'?
https://www.autohotkey.com/docs/commands/Hotkey.htm#Parameters wrote:If, Expression
Known limitation: If Expression contains an and/or operator, it is not recognized as an existing expression. As a workaround, use the equivalent &&/|| operator in both the original #If expression and the one passed to the Hotkey command.
Users browsing this forum: mikeyww and 33 guests