📐 Ace AutoHotkey with this essential guide to understanding coordinates: Boost your skills today❗
Channel: AUTOHOTKEY Gurus
Date: 17/11/2022

In this video we clarify how to use Coordinate Mode in AutoHotkey.   CoordMode affects several things but the most common is Pixel Search and Mouse Clicks.  Here we explain what they are and when you might use one over the other.
TLDR: Coordinate mode commands can be used to improve the accuracy and stability of mouse clicks and pixel searches.

1. 00:00 🐭 Using coordinate mode commands can improve the stability of sending mouse clicks and looking for pixels.
 1.1 We're discussing how to improve the stability of sending mouse clicks and looking for pixels, and how to use the coordinate mode command.
 1.2 This lecture discusses the use of coordinate mode pixel screen and mouse screen, and explains why client coordinates are recommended.

2. 01:33 🐭 Window and client positions give the mouse's coordinates relative to the screen, with (0,0) being the top left corner.
 2.1 The mouse position is relative to the screen size, with the top left corner being (0,0).
 2.2 Window and client give the same information, but window takes into account more of the active window.

3. 03:23 🤔 The zero position of an active window is determined by the three coordinate modes, not including the caption bar or menu.
 3.1 The zero position for an active window is the top left corner of the window, not including the caption bar.
 3.2 The client area does not take into account the menu when determining the mouse position, so the three coordinate modes determine where the zero zero point starts.

4. 05:44 🤔 When sending mouse clicks and keystrokes, consider using screen or window coordinates depending on window size.
 4.1 Screen mode is the most commonly used coordinate mode in scripts.
 4.2 When sending mouse clicks and keystrokes, it is important to consider whether to use screen or window coordinates, depending on whether the window size is likely to change.

5. 08:38 💻 Windows applications use DLL calls to convert font positions.
 5.1 Fonts in Windows applications like Notepad always appear in the same location.
 5.2 Windows functions require knowledge of DLL calls to convert one position to another.

6. 10:26 🔧 Changing the coordinate mode fixed the issue of the UIA library not being able to click the button.
 6.1 Changing the coordinate mode from window to screen fixed the issue of the UIA library not being able to click the button.
 6.2 If the function returns a location different from the one your script is sending, it won't be able to click it.

7. 11:57 🤔 To use certain functions, you may need to use Coordinate Pixel Screen or Coordinate Pixel Window, and Chord mode affects the tooltip, pixel mouse, and caret.
 7.1 To use functions like Pixel Search or Pixel Get Color, you may need to use Coordinate Pixel Screen or Coordinate Pixel Window.
 7.2 Chord mode affects the tooltip, pixel mouse, and caret, and usually defaults to window-related location, but can be changed to a screen location.

8. 14:10 🔔 Subscribe to our YouTube channel and newsletter for Autohotkey videos!
 8.1 Subscribe to our YouTube channel and newsletter for twice-weekly Autohotkey videos.
https://the-Automator.com/YouTube