AHK-v2-script-converter
AHK-v2-script-converter copied to clipboard
Issues with function calls that need ByRef -> & and multi-statement
V1:
MyFunc(ByRef a, ByRef b) {}
MyFunc(a, b)
MyFunc(a, b), a = b ; Stripped
MyFunc(a, b) ; Stripped
V2 (Converted):
MyFunc(&a, &b) {}
MyFunc(&a, &b)
MyFunc(&a, &b)
MyFunc(&a, &b)
V2 (Expected):
MyFunc(&a, &b) {}
MyFunc(&a, &b)
MyFunc(&a, &b), a = b ; Stripped
MyFunc(&a, &b) ; Stripped
Adding below lines causes more strange behaviour (both commented and un)
; MyFunc(a, b), Ord(1)
; MyFunc(a, b), MyFunc(a, b)