Why is Global Line++ throwing an error ? In this case ?
I declared the variable as global at the top of the script, so what causes the error ?
Code: Select all
#Requires AutoHotkey v2.0
Global Line := 1
^2::
{
;global Line := Line+1 ; <<<< This works
Global Line++ ; <<<<<< This throws the error [color=#FF0000]Invalid variable declaration[/color]
}