Skip to content

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

Notifications You must be signed in to change notification settings

KamilDev/cursor-focus-fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published