Keyboard shortcut for moving mouse to focused window?

5,986

Solution 1

There are two options available which can help to a limit if not everything you need.

you can control mouse cursor using numeric pad. Under "Ease of access center", you can find setting related to mouse. Turn on "Mouse Keys" to control mouse cursor.

enter image description here

You can also set mouse cursor to jump to default button of screen. Use mouse properties to do that.

enter image description here

Solution 2

I came over the same problem and developed a small piece of software to help. I published it on the Microsoft Store or you can download the source code here and compile it yourself.

The software runs in background and listens for certain keyboard input (Alt+Tab, Win[+Shift]+Arrow keys, 2xCTRL) and will place the mouse cursor in the center of a active foreground window after all keys are released.

Feedback would be nice so I can try to improve.

Share:
5,986

Related videos on Youtube

samus
Author by

samus

"Design is, of course, the art of compromise in the face of many competing principles."

Updated on September 18, 2022

Comments

  • samus
    samus over 1 year

    Is there a keyboard shortcut, or a setting, to make the mouse cursor "jump" to the currently focused window?

    I use a dual monitor setup, and after Alt+Tab-ing to a window on the adjacent screen, it would be rather helpful to jump the mouse cursor to the center of it (sort of a like a reverse focus follow).

    • Ignacio Vazquez-Abrams
      Ignacio Vazquez-Abrams about 6 years
      Start a window move with the keyboard and then press Esc.
    • Ignacio Vazquez-Abrams
      Ignacio Vazquez-Abrams about 6 years
      Alt-Space then M?
    • T Nierath
      T Nierath about 6 years
      I think your best shot is autohotkey. Write two keyboard bindings that each move the mouse cursor to the center of screen 1/2.
    • samus
      samus about 6 years
      @IgnacioVazquez-Abrams Alt-Space, M (or S) doesn't work if window is full screen.
    • samus
      samus about 6 years
      @TNierath Is AutoHotKey known to interfear with Visual Studio?
    • T Nierath
      T Nierath about 6 years
      I don't know, why? At it's core it's just a scripting language specialized for generating sequences of win32 messages and binding these to keys.
    • samus
      samus about 6 years
  • DavidPostill
    DavidPostill about 4 years
    Welcome to Super User! Please don't add "thanks" as answers. Invest some time in the site and you will gain sufficient privileges to upvote answers you like, which is the Super User way of saying thank you.