Elevate your AutoHotkey skills with a responsive GUI - Learn how now!

Elevate your AutoHotkey skills with a responsive GUI - Learn how now!

AUTOHOTKEY Gurus

2 года назад

1,615 Просмотров

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
Ссылки и html тэги не поддерживаются


Комментарии:

@felipesanchez8778
@felipesanchez8778 - 05.07.2022 21:19

Congratulations on the channel, man. I've studied programming but since 2005 I drifted apart from the IT universe and recently I decided to get back to business and started studying autohotkey (that's how I got to your channel) and your videos are helping me out a lot, I wasn't being able to recall half of the concepts and felt a little lost but in a couple months practicing and watching the videos (and I MUST note that 95% are yours) I'm starting to make my mind "think programming" (like a spoken language - I don't know if you understand what I really mean here). So, I just wanted to say thanks.

Ответить
@ewerybody
@ewerybody - 05.07.2022 18:08

UI is still the worst part of Autohotkey 🙁
Windows has so much cool stuff nowadays and in terms of UI it looks like AHK is stuck on Win 98.

Ответить
@I.____.....__...__
@I.____.....__...__ - 05.07.2022 17:40

Every time I do this, I do it manually from scratch, and it's annoying every time (with the last project, I was tempted to not even make it resizable at all). 😕 I've seen some attempts to make frameworks and simplify it, but none of have stuck.

Ответить