Keyboard shortcut for moving mouse to focused window?
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.
You can also set mouse cursor to jump to default button of screen. Use mouse properties to do that.
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.
Related videos on Youtube
samus
"Design is, of course, the art of compromise in the face of many competing principles."
Updated on September 18, 2022Comments
-
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 about 6 yearsStart a window move with the keyboard and then press Esc.
-
Ignacio Vazquez-Abrams about 6 yearsAlt-Space then M?
-
T Nierath about 6 yearsI think your best shot is autohotkey. Write two keyboard bindings that each move the mouse cursor to the center of screen 1/2.
-
samus about 6 years@IgnacioVazquez-Abrams Alt-Space, M (or S) doesn't work if window is full screen.
-
samus about 6 years@TNierath Is AutoHotKey known to interfear with Visual Studio?
-
T Nierath about 6 yearsI 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 about 6 years
-
-
DavidPostill about 4 yearsWelcome 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.