Auto-GUI Ahkv2 converter for Adventure's Auto-GUI. A working draft.

Post your working scripts, libraries and tools.
sashaatx
Posts: 351
Joined: 27 May 2021, 08:27
Contact:

Auto-GUI Ahkv2 converter for Adventure's Auto-GUI. A working draft.

07 Apr 2023, 20:31

Written in python. Made for:
https://sourceforge.net/projects/autogui/

Takes one command, path to file.
autogui-converter.exe --"c:\desktop\mygui.ahk" ===> output c:\desktop\mygui_v2.ahk
https://github.com/samfisherirl/Auto-GUI-ahkv2-converter

my todo list:
-handle window color, font, etc
-handle functions and alternate structures, right now it only looks for gui add
-option for file dialogue or drag n drop script to convert

happy to take input and corrections, im far from a v2 expert.

example before:

Code: Select all

; Generated by Auto-GUI 3.0.1
#SingleInstance Force
#NoEnv
SetWorkingDir %A_ScriptDir%
SetBatchLines -1

Gui Font, s9, Segoe UI
Gui Add, CheckBox, vABBLE x304 y32 w120 h22, CheckBox
Gui Add, ComboBox, x174 y119 w120, ComboBox
Gui Add, MonthCal, gAble x346 y272 w225 h160
Gui Add, Text, x215 y225 w120 h23 +0x200, Text
Gui Add, UpDown, x167 y280 w17 h20  -16, 1
Gui Add, DropDownList, x48 y1 w120, DropDownList||

Gui Show, w620 h420, Window
Return

GuiEscape:
GuiClose:
    ExitApp
example conversion:

Code: Select all

#SingleInstance Force
#Requires AutoHotkey v2
#Warn all, Off

G := MyGui_Create()
{
    __New() {
    this.MyGUI := Gui(,"NameHere")

	this.ABBLE_ := this.MyGUI.AddCheckBox("x304 y32 w120 h22", "ABBLE")
	this.ABBLE_.OnEvent("Click", this.ABBLE_click)
	this.buckles_ := this.MyGUI.AddComboBox("x174 y119 w120 ", "buckles")
	this.buckles_.OnEvent("Click", this.buckles_click)
	this.Able_ := this.MyGUI.AddMonthCal("x346 y272 w225 h160", "Able")
	this.Able_.OnEvent("Click", this.Able_click)
	this.wiggle_ := this.MyGUI.AddText("x215 y225 w120 h23", "wiggle")
	this.wiggle_.OnEvent("Click", this.wiggle_click)
	this.airplane_ := this.MyGUI.AddUpDown("x167 y280 w17 h20", "airplane")
	this.airplane_.OnEvent("Click", this.airplane_click)
	this.silks_ := this.MyGUI.AddDropDownList("x48 y1 w120 ", "silks")
	this.silks_.OnEvent("Click", this.silks_click)
	}
	ABBLE_click(){
	

		}
	buckles_click(){
	

		}
	Able_click(){
	

		}
	wiggle_click(){
	

		}
	airplane_click(){
	

		}
	silks_click(){
	

		}
}

https://github.com/samfisherirl
? /Easy-Auto-GUI-for-AHK-v2 ? /Useful-AHK-v2-Libraries-and-Classes : /Pulovers-Macro-Creator-for-AHKv2 :

Return to “Scripts and Functions (v2)”

Who is online

Users browsing this forum: wilkster and 36 guests