GUIs are easy in AutoHotkey! In this video we show how to easily create a responsive GUI in AutoHotkey.
If you're new to GUIs you might want to check out our GUIs are Easy course!
https://the-Automator.com/GUIs
TLDR: This video demonstrates an easy way to create a reactive GUI in AutoHotkey, allowing for control over element positioning when the window is resized.
1. 00:00 💻 Joe and Isaias demonstrate an easy way to create a reactive GUI in AutoHotkey, eliminating the need to manually update controls when resizing a window.
1.1 In this video, Joe and Isaias show how to create a reactive GUI in AutoHotkey.
1.2 Manually updating controls when resizing a window is a lot of work depending on the number and type of controls.
2. 01:48 🔨 Create a GUI with a resize option and add an edit button of size 400 units.
2.1 Create a GUI with a resize option, get its handle, and add an edit button with a size of 400 units.
3. 03:23 📍 Get window position and use window positioning to display x, y, width, and height.
3.1 Get the current position of the window with wind get position and store it in variables, then use window positioning to display the x, y, width, and height.
4. 05:25 🐭 Set a timer to turn off tooltip after 3s and loop through all controls to store info in an array.
4.1 A timer is set to turn off the tooltip after three seconds, and it will update as the mouse is moved.
4.2 Loop through all controls and store their information in an array.
5. 07:37 🤖 Move a control by name and position using the GUI Control Move command.
5.1 Using the GUI Control Move command, you can move a control by specifying the name of the control and the x, y, w, and h positions.
6. 09:28 🧮 Subtract the expression from the window width to do math, and the edit control will always be 100 pixels less than the window size when resized.
6.1 To do math, grab the width of the window and subtract the expression.
6.2 The edit control will always be 100 pixels less than the size of the window, and will move down with the window when resized.
7. 11:19 🔧 Anchor and Attach classes provide control over element positioning when window is resized.
7.1 Anchor and Attach classes allow you to control the positioning of elements on the screen when the window is resized.
8. 12:41 💻 Learn how to work with ahk GUIs in this course - easy to use and understand!
8.1 This course is a great way to learn how to work with GUIs, as they are easy to use and understand.
https://the-Automator.com/GUIs
Summary for
https://youtu.be/tQG_ov4MJ0E by
www.eightify.app
Тэги:
#ahk_script #ahk_example #ahk_tutorial #autohotkey_example #autohotkey_script #autohotkey_tutorial #autohotkey #joe_glines #learn_autohotkey #rpa #the-automator #how_to_create_a_responsive_GUI #how_to_easily_create_a_responsive_GUI #create_responsive_gui_in_AutoHotkey #easily_create_responsive_AutoHotkey_guis #how_to_create_responsive_ahk_gui #guis_are_easy_in_AutoHotkey