You won’t believe how easy it is to bring a missing window to your mouse! 😲
Channel: AUTOHOTKEY Gurus
Date: 2023-04-18

We've all had a time when a GUI is off the visible the screen.  With this simple AutoHotkey script you can easily bring it back to where your mouse is located.   We also show the code both in AHK v1 and in AHK v2

Consider learning AutoHotkey v2 in the following courses (now on sale)
New too ahk:  Intro to AHK  https://the-Automator.com/IntroAHK
familiar with AHK:  https://the-Automator.com/V1toV2Course

TLDR: The video teaches how to retrieve a lost program on a computer screen or monitor using hotkeys and code, with additional features such as multi-monitor support and simplified syntax.

1. 00:00 💻 Learn how to retrieve a lost program on your computer screen or monitor.
 1.1 Learn how to easily retrieve a program that has disappeared off the screen or moved to a different monitor.

2. 00:35 💻 The hotkey moves the active window to the current mouse position with just two lines of code.
 2.1 The hotkey captures the current mouse position and moves the active window to that position with just two lines of code.

3. 01:36 👀 Use control space M and move your mouse to bring back a lost Zoom window.
 3.1 The speaker explains how to bring back a Zoom window that has moved off screen by using the control space M shortcut and moving the mouse.

4. 02:39 💻 Code sets mouse mode to screen for accurate mouse position in coordinate mode.
 4.1 The code uses coordinate mode and sets the mouse mode to the screen to ensure that the mouse position relates to the screen and not the active window.

5. 03:55 💻 V2 code is similar to V1, but with minor changes in syntax and mouse position setting.
 5.1 V2 code is almost the same as V1, with the only difference being the use of text screen and single quotes for confirm, and the addition of brackets and ampersands for mouse position setting.

6. 04:58 💻 Simplified code using function calls and expressions.
 6.1 The speaker simplified the code by converting it into one line using function calls and expressions.

7. 06:07 💻 Added multi-monitor support to Windows spy tool.

8. 06:40 🚀 Use functions in AutoHotkey to condense multiple actions into one line.