AHK-v2-script-converter
AHK-v2-script-converter copied to clipboard
AHK v1 -> v2 script converter WORK IN PROGRESS
V1: ```ahk Gui, Add, Text,, Gui Number 1 Gui, Add, Edit, vEdit1, I love to edit Gui, Add, Button, gOpen2Gui, Open GUI 2 Gui, Add, Button, gSumbitResults, Submit my edit...
From docs: > If a button lacks an explicit [g-label](mk:@MSITStore:C:\Program%20Files\AutoHotkey\v1.1.36.02\AutoHotkey.chm::/docs/commands/Gui.htm#label), an automatic label is assumed. For example, if the first GUI window contains an OK button, the ButtonOK label (if...
Fixes #297 Only thing that could changed it currently ```ahk Return, a := 1, b := 2 ; Converted to -> Return (AHKv1v2_Temp := a := 1, b := 2,...
V1: ```ahk var := DllCall("Func" , "Str", "ABC" ; Comment , "Str, "123" ; Comment , "Str", "DEF") ;Comment hCtrl := DllCall("CreateWindowEx" , "Uint", 0x200 ; WS_EX_CLIENTEDGE , "str", "HiEdit"...
Changes - Update ahk wrapper to v2 - Update mergely to v5 - Runs under WebView2 - Smaller overall size (1.44MB -> 668KB, mostly from deleting the ahk bin, as...
V1: ```ahk MyFunc() { global Return a := 1, b := a + 1 } MyFunc() MsgBox % a " " b ``` V2 (Converted): ```ahk MyFunc() { global Return...
V1: ```ahk F1:: MsgBox % """" ; " F2:: MsgBox % "abc""123" ; abc"123 F3:: MsgBox % "abc""123" MyFunc("", "123""abc") "" ; abc"123123"abc MyFunc(a, b) { return a b }...
V1: ```ahk x := x = "" ? 0 : "" ``` V2 (Converted): ```ahk x := x = `" ? 0 : `" ``` V2 (Expected): ```ahk x :=...
V1: ```ahk MyFunc() { Gui, Add, Text,, Gui Gui, Show, w150 } MyFunc() F1::Gui, Destroy ``` V2 (Converted): ```ahk MyFunc() { myGui := Gui() myGui.Add("Text", , "Gui") myGui.Show("w150") } MyFunc()...
V1: ```ahk MyFunc(ByRef a, ByRef b) {} MyFunc(a, b) MyFunc(a, b), a = b ; Stripped MyFunc(a, b) ; Stripped ``` V2 (Converted): ```ahk MyFunc(&a, &b) {} MyFunc(&a, &b) MyFunc(&a,...