Skip to content

Latest commit

 

History

History
38 lines (22 loc) · 1.2 KB

README.md

File metadata and controls

38 lines (22 loc) · 1.2 KB

cursor-focus-fix

A simple AutoHotkey script to fix window focus issues with Cursor IDE on Windows.

Description

This script addresses a window focus issue that can occur with Cursor IDE on Windows. When Cursor attempts to grab focus, this script ensures the window properly activates, providing a smoother development experience.

Requirements

Installation

  1. Clone this repository or download the cursor-focus-fix.ahk file
  2. Double-click the cursor-focus-fix.ahk file to run it with AutoHotkey
  3. The script will run in the background and handle Cursor's window focus automatically

How It Works

The script uses Windows shell hooks to monitor window focus events. When it detects that Cursor.exe is requesting focus, it ensures the window is properly activated.

Running on Startup

To have the script run automatically when Windows starts:

  1. Press Win + R
  2. Type shell:startup
  3. Create a shortcut to cursor-focus-fix.ahk in the startup folder

License

MIT License

Contributing

Feel free to open issues or submit pull requests if you have suggestions for improvements.