Closed 4GForce closed 7 years ago
Thanks
Well, I realised that it was probably working anyway. I'm new to AutoHotkey and I find it confusing with the mix of c++ and ahk.
The == operator seems to work in ahk scripts but only with parentheses
if 0 ; false ( any language ) if 0 = 0 ; true ( ahk ) if 0 == 0 ; false ( ahk ) if ( 0 = 0 ) ; true ( ahk ) if ( 0 == 0 ) ; true ( c++, but also works in ahk scripts )
At least I'm learning,
4G
I was not aware of that either.
I'm easily confused with ahk comparisons, too... The == operator behaves identically to = except when either of the inputs is not a number, in which case == is always case sensitive and = is always case insensitive. Also == is only valid in an expression. In a traditional IF (no parentheses), the second = becomes part of the text to compare.
Random find, easy fix. I know the method is not used but it was still broken.