Last active
April 26, 2021 15:44
-
-
Save JoeGlines/9cb540a4cfee3904980b949ea47454f0 to your computer and use it in GitHub Desktop.
Template to easily create resizeable GUIs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;******************************************************* | |
; Want a clear path for learning AutoHotkey; Take a look at our AutoHotkey Udemy courses. They're structured in a way to make learning AHK EASY | |
; Right now you can get a coupon code here: https://the-Automator.com/Learn | |
;******************************************************* | |
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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment