Skip to content

Instantly share code, notes, and snippets.

@navhaxs
Created March 28, 2024 07:12
Show Gist options
  • Select an option

  • Save navhaxs/aaa47d908d64975a487ba4be93b4ccd3 to your computer and use it in GitHub Desktop.

Select an option

Save navhaxs/aaa47d908d64975a487ba4be93b4ccd3 to your computer and use it in GitHub Desktop.

Revisions

  1. navhaxs created this gist Mar 28, 2024.
    7 changes: 7 additions & 0 deletions move_cursor_to_primary_monitor_center.ahk
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    #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