If you are looking for software to use, go to Huajun Software Park! software release

How to create gui forms and buttons in AutoHotkey-AutoHotkey tutorial

Author: Xiaoyuer Date: 2020-12-05

AutoHotkey
AutoHotkey-2.0.10 official version

System assistance Storage size: 2.83 MB Time: 2022-10-21

Software introduction: AutoHotkey is a simple and powerful hotkey scripting language. Users can combine keyboard, mouse, and even game joystick movements and clicks...

Download now

Don’t you know how to use AutoHotkey to create gui forms and buttons? Then friends who know how to do it can come and learn with the editor how to create gui forms and buttons with AutoHotkey. I hope that through the study of this tutorial, I can help all my friends. .

;Example (total):

Gui, Add, Button, x82 y90 w110 h60 , MyButton

Gui, Show, x127 y87 h379 w479, window name

Return

ButtonMyButton:

msgbox, my button.

return

GuiClose:

ExitApp

autohotkey creates gui forms and buttons

Gui, Add, Button, x82 y90 w110 h60 , MyButton

;;MyButton is the name of the control, and also the text that appears on the control

;;x abscissa, y ordinate, w width, h height

autohotkey creates gui forms and buttons

Gui, Show, x127 y87 h379 w479, window name

;;Show form

autohotkey creates gui forms and buttons

ButtonMyButton:

msgbox, my button.

return

;; is the content executed by the button (the effect is: when the button is pressed, an information box pops up, the content is my button)

autohotkey creates gui forms and buttons

GuiClose:

ExitApp

;;When the gui form is closed, the script exits (the tray disappears)

autohotkey creates gui forms and buttons

The above is the method shared by the editor to create gui forms and buttons in AutoHotkey. Let’s take a look.

Related articles