🎓💻 Take your automation game to the next level - Learn to automate any program with ease! 📚
Channel: AUTOHOTKEY Gurus
Date: 22/06/2022

In this video we show you how to easily automate most programs with the UI Automation API and AutoHotkey!  This is mind-blowing stuff!  We just started playing with it but it looks like an amazingly powerful way to automate most programs!   Learn more here:  https://the-Automator.com/UIA

Forum link: https://the-Automator.com/UIA_Interface
Inspection tool: https://the-Automator.com/MSInspect
TLDR: Descolada's library automates tasks by grabbing elements from a window, clicking elements by name or type, creating a UI interface, looping to increase font size, assigning elements a name, and using the ElementFromPoint class and UI Automation to control the mouse and send keystrokes.

1. 00:00 🤖 Descolada created a library to automate browsers, improving on the Microsoft Accessibility Library and AutoHotkey's UI Automation approach.
 1.1 This video demonstrates how to use the UI Automation API to automate programs, and shows how to get the Microsoft Inspection Tool to get names and IDs.
 1.2 Colada created a library to automate browsers, which is an improvement on the deprecated Microsoft Accessibility Library and AutoHotkey's UI Automation approach.

2. 02:06 🤖 Automate tasks with UIA automation by grabbing elements from a window.
 2.1 UIA automation allows users to grab elements from a window and use them to automate tasks.

3. 03:41 📝 Notepad is opened and manipulated to click on File and Save menu items, and the dump all function returns all elements and their paths.
 3.1 You can get an element by handle, mouse position, or x and y coordinates, and then write information to it.
 3.2 Notepad is opened and manipulated to click on the File and Save menu items, and the dump all function returns all elements and their paths.

4. 05:49 📝 Click an element by name or type to open a window with text set to "lorem ipsum".
 4.1 The text editor, status bar, and window are the main controls, with other controls being their children.
 4.2 You can click an element by name and type, and it will click the menu item and open a window with the text set to "lorem ipsum".

5. 07:30 🔎 Create a new UI interface and use a keyword to quickly get the information you need.
 5.1 The iwp learner tool and the acc library inspection tool make it easier to get the information you need quickly.
 5.2 Create a new UI interface and use the new keyword to save it into a variable to get the desired information.

6. 09:59 🤔 Create a loop to increase font size in Excel 5x, be mindful of file type & name accuracy.
 6.1 Using the win exist and ui automation functions, a loop is created to find and click on the "increase font size" element in Excel five times.
 6.2 Be mindful of the type when creating a file, as it usually has no spaces, while the name should be exact.

7. 12:35 🤔 By assigning an element a name on creation, you can trigger a button without clicking.
 7.1 By getting the name of the element assigned to it on creation, you can click on a button without actually clicking.

8. 14:14 🤖 Use the ElementFromPoint class and UI Automation to control the mouse and send keystrokes across different versions of Excel.
 8.1 Load an object, get an element, and use the library to control the mouse and send keystrokes across different versions of Excel.
 8.2 The ElementFromPoint class allows access to elements from other programs to automate tasks.
 8.3 You can download the inspect tool to start playing with UI animation, or use the mouse over to look for a name.
 8.4 Using UI Automation, you can access Chrome and Chromium controls to perform actions such as clicking, getting text, and more.

Summary for https://youtu.be/6_4m4YeuRI4 by www.eightify.app