Code: Select all
#Requires Autohotkey v2
;AutoGUI creator: Alguimist autohotkey.com/boards/viewtopic.php?f=64&t=89901
;AHKv2converter creator: github.com/mmikeww/AHK-v2-script-converter
;EasyAutoGUI-AHKv2 github.com/samfisherirl/Easy-Auto-GUI-for-AHK-v2
if A_LineFile = A_ScriptFullPath && !A_IsCompiled
{
myGui := Constructor()
myGui.Show("w620 h672")
}
Constructor()
{
myGui := Gui()
myGui.Opt("+0x200000") ; <===== here
myGui.SetFont("s20", "Arial")
myGui.OnEvent('Close', (*) => ExitApp())
myGui.Title := "Window"
return myGui
}