AHK-v2-script-converter icon indicating copy to clipboard operation
AHK-v2-script-converter copied to clipboard

AHK v1 -> v2 script converter WORK IN PROGRESS

Results 72 AHK-v2-script-converter issues
Sort by recently updated
recently updated
newest added

there is already a unit test for this, it is commented out `Continuation_NewlinePreceeding()` here: https://github.com/mmikeww/AHK-v2-script-converter/blob/master/tests/Tests.ahk#L283

``` if false { msgbox } msgbox 3 ``` ``` if false { msgbox } if var = 5 { msgbox 2 } ``` ``` var := 5 if false...

The following script fails in conversion, gives errors and the wrong conversion. ``` script = ( document.querySelector('#userId').value = '%user%' ) ``` This could be a correct conversion, but I hope...

None() { ; Removes all events. return this .OnEvent("LeftMouseDown") .OnEvent("MiddleMouseDown") .OnEvent("RightMouseDown") } becomes None() { ; Removes all events. return this .OnEvent("LeftMouseDown") .OnEvent("MiddleMouseDown") .OnEvent("RightMouseDown") } I bet somewhere a ```"`n"```...

It would be cool to have syntax highlighting in the convertor. I know a library sci.ahk, but unfortunately it is in V1...

MsgBox, % " sfdsdf "" " Should become MsgBox(" sfdsdf `" ") Currently: MsgBox(" sfdsdf "" ")

Missing the deref conversion to NumGet, maybe converting *( if it is preceded with = , { ... by a fictive function DereferenceV1, so we can convert it with the...

v1 `DllCall("oleacc\AccessibleChildren", "Ptr", ComObjValue(Acc), "Int", 0, "Int", cChildren, "Ptr", VarSetCapacity(varChildren,cChildren*(8+2*A_PtrSize),0)*0+&varChildren, "Int*", cChildren)` v1→v2 converter `DllCall("oleacc\AccessibleChildren", "Ptr", ComObjValue(Acc), "Int", 0, "Int", cChildren, "Ptr", varChildren := Buffer(cChildren*(8+2*A_PtrSize), 0)*0+&varChildren, "Int*", &cChildren := 0)`...

can replace ```autohotkey FileReadLine, line, C:\My Documents\ContactList.txt, 5 ``` with ```autohotkey Loop, Read, C:\My Documents\ContactList.txt { if (A_Index = 5) { line := A_LoopReadLine break } } ``` or using...

in V2, labels must sometimes be converted to functions. does this means that we should start this function with global? example: Process example 3 ( almost working) https://www.autohotkey.com/docs/commands/Process.htm ``` #z::...