I've been struggling with this question since the begining of using AHK and I just can't spot the information that will clear this out.
I want to use an IF OR condition and not repeat ten times the same variable to evaluate.
How do you abreviate this example:
Code: Select all
IF (wParam = 0x6E or wParam = 0xBE or wParam = 0xBC)
ToolTip
Code: Select all
IF (wParam = 0x6E or 0xBE or 0xBC) ; wrong all messages validate true when its false
IF (wParam = 0x6E, 0xBE, 0xBC) ; wrong
IF (wParam = 0x6E | 0xBE | 0xBC) ; wrong
IF (wParam = 0x6E 0xBE 0xBC) ; wrong
thanks for any tips
Alex