Skip to content

Instantly share code, notes, and snippets.

@navhaxs
Created March 28, 2024 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save navhaxs/aaa47d908d64975a487ba4be93b4ccd3 to your computer and use it in GitHub Desktop.
Save navhaxs/aaa47d908d64975a487ba4be93b4ccd3 to your computer and use it in GitHub Desktop.
move_cursor_to_primary_monitor_center.ahk
#Requires AutoHotkey 2.0+
#SingleInstance Force
CoordMode("Mouse")
;Alt+M
!M::MouseMove(A_ScreenWidth/2,A_ScreenHeight/2,0) ;Primary
;F5::Try MonitorGet(2,&L,&T,&R,&B),MouseMove((L+R)/2,(T+B)/2,0) ;Secondary
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment