AHK-v2-script-converter
AHK-v2-script-converter copied to clipboard
AHK v1 -> v2 script converter WORK IN PROGRESS
maybe if any of the commands that are affected by CoordMode are detected within the script, then we should set the related CoordMode,,Window at the top of the script https://lexikos.github.io/v2/docs/commands/CoordMode.htm
> The methods Insert and Remove have been removed. They were superseded by InsertAt, RemoveAt, Push, Pop, Delete and ObjRawSet in v1.1.21. see the v1 Objects help page for conversions
`pfd` is a struct made using `Buffer` (prev `VarSetCapacity`) and `NumPut` v1: `DllCall("SetPixelFormat", "uInt", hwndDC, "uInt", iPixelFormat, "uInt", &pfd)` v2 good: `DllCall("SetPixelFormat", "uInt", hwndDC, "uInt", iPixelFormat, "uInt", pfd.Ptr)` your v2:...
Hi, this script written in AHK v1 https://github.com/tmplinshi/KeypressOSD I want to convert to AHK v2 I can't convert using "AHK-v2-script-converter" Please help me.
Input: ```ahk InputBox, Hotstring, New Hotstring, Provide the corrected word on the right side. You can also edit the left side if you wish.`n`nExample entry:`n::teh::the,,,,,,,, ::%Hotstring%::%Hotstring% ``` The converter didn't...
Currently, if a script uses ErrorLevel to check for the success/failure of the prior command, the converter changes it to store in an ErrorLevel variable then use that in the...
Input: ``` MsgBox % "Steve picked up his clipboard." MsgBox Steve opened his clipboard. ``` Incorrect output: ``` MsgBox("Steve picked up his A_Clipboard.") MsgBox("Steve opened his A_Clipboard.") ``` This is...
V1 code: ```ahk Menu, Image, Add, Invert colours of image in clipboard, InvertImageInCb Menu, Image, Add, Save Clipboard Image as File, SaveCbImageasFile Menu, Image, Add, Save Clipboard Image as 8-bit...
Darkmode
this is a half baked initial outreach to see if a darkmode toggle would be of interest. final would ideally cover menus and buttons. cheers. 
v1 code: `WinGetPos xx, yy, ww, hh, my_winTitle` actual v2 code: `WinGetPos(&xx, &yy, &ww, &hh, "my_winTitle")` expected v2 code: ``` try{ WinGetPos(&xx, &yy, &ww, &hh, "my_winTitle") }catch e{ xx:="" yy:=""...