Resizable AutoHotkey GUI function for simple GUIs in 2020

Here’s a handy Re-sizable GUI Function in AutoHotkey that I used to use a lot more (before I had access to the Debug window in AHK Studio and Output Window in SciTE4AutoHotkey

Resizable AutoHotkey GUI Function

Code for Resizable AutoHotkey GUI Function in AutoHotkey


Resizable_GUI(Data,x=900,y=600){
	static EditWindow
	Gui,12:Destroy
	Gui,12:Default
	Gui,+Resize
	Gui,Font,s12 cBlue q5, Courier New
	Gui,Add,Edit,w%x% h%y% -Wrap HScroll hwndEditWindow, %Data%
	Gui,Show
	return
	12GuiEscape:
	12GuiClose:
	Gui,12:Destroy
	return
	12GuiSize:
	GuiControl,12:Move,%EditWindow%,% "w" A_GuiWidth-30 " h" A_GuiHeight-25
	return
}

Comments are closed.