Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shortcut to move mouse pointer between monitors #984

Closed
ckarras opened this issue Dec 19, 2019 · 11 comments
Closed

Shortcut to move mouse pointer between monitors #984

ckarras opened this issue Dec 19, 2019 · 11 comments
Labels
Idea-New PowerToy Suggestion for a PowerToy Product-Tweak UI Design Refers to the idea of a UI Design tweaker Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.

Comments

@ckarras
Copy link

ckarras commented Dec 19, 2019

Summary of the new feature/enhancement

In a setup with 3 or more monitors, it can take a long time to move the mouse between monitors. Additionally, sometimes the mouse pointer can be lost and hard to find again. Also I frequently connect my laptop at different locations (office, home, meeting rooms, etc) with different layouts, so the ordering of screens is not always optimal to move the mouse between screens efficiently.

It would be useful to have shortcuts to:

  • move the mouse pointer to the center of current screen/previous screen/next screen
  • move the mouse pointer to the center of the window that currently has focus (could be used after using Alt+Tab or Win+Tab)

It should be possible to map the shortcut to keyboard and/or mouse keys. Some mouses have additional buttons that are mapped to things like Back/Forward which I never use intentionally, remapping these buttons to move the pointer to previous/next monitor would be useful. (Example: Logitech MX500). Keyboard shortcuts for users that don't have such a mouse would also be necessary.

This should also consider the monitors as a loop:

  • when on the last monitor, moving to the next monitor should go back to the first monitor
  • and when on the first monitor, moving to the previous monitor should go back to the last monitor

This could also be combined with something like #131: whenever one of these shortcuts is used, an animation highlighting the new position of the mouse could be done (and it should be possible to disable this animation)

Example usage scenarios

  1. Cursor is lost and the user just wants to have it back at a convenient location, in the same screen. User uses the "move to center of current screen" shortcut

  2. User has 5 monitors, the mouse is currently on monitor 4 and user wants to move it to monitor 1. User has two options:

  • Click on the "move to previous monitor" 3 times to move the cursor to center of monitor 3, then the center of monitor 2, and finally the center of monitor 1
  • Or click on "move to next monitor" 2 times to move the cursor to the center of monitor 5 then the center of monitor 1
  1. User is currently on monitor 5 and used Alt+Tab or Win+Tab to focus a window that was on monitor 1. User can then press the "move to center of current window" to go to the center of that window on monitor 1.
@bzoz
Copy link
Contributor

bzoz commented Dec 19, 2019

This also needs some animation to mark where the mouse is after it was moved.

We could also have a shortcut to bring the mouse to the middle of the active window.

@crutkas crutkas added Idea-New PowerToy Suggestion for a PowerToy Product-Tweak UI Design Refers to the idea of a UI Design tweaker labels Dec 20, 2019
@crutkas
Copy link
Member

crutkas commented Dec 20, 2019

this could also be related to #131 Different yet related.

@mhDuke
Copy link

mhDuke commented Nov 4, 2020

let's start simple, having 3 monitors each has an identity of 1, 2 and 3. we need to conveniently press a customizable hotkey like CRTL+1, CTRL+2, and CTRL+3 to move the cursor to the respective monitor.

later add the ability to switch between monitors in ALT+TAB and ALT+SHIFT+TAB manner.

@riotrah
Copy link

riotrah commented Dec 28, 2021

Bumping as this would be great

@ngbrown
Copy link

ngbrown commented Jan 3, 2022

I second the desire to handle the 3rd usage scenario:

User is currently on monitor 5 and used Alt+Tab or Win+Tab to focus a window that was on monitor 1. User can then press the "move to center of current window" to go to the center of that window on monitor 1.

This would only need a single hot-key, or even an option to automatically move the mouse after the Alt+Tab operation is done. Even the Alt+Tab window could be improved if the mouse could be moved locally to the window selection screen until a selection is made or is canceled.

Constantly moving the mouse cursor between the large external monitor and the laptop screen is fatiguing.

@guitarjorge24
Copy link

guitarjorge24 commented Feb 28, 2022

The ability to remove certain monitors from the Alt+Tab list would be great.

For example, I never use my mouse on 2 of my 5 monitors because monitor # 4 is a drawing tablet which uses a pen and monitor # 5 is not a monitor but a Dolby Atmos soundbar that needs to connect through HDMI and so Windows detects it a monitor.

But even if I dont use my mouse on either of these 2 monitors, the cursor gets used on my drawing tablet monitor when I draw on it and sometimes I do accidentally move my mouse to where the fake soundbar monitor is which makes me lose my cursor but I dont want either of those to ever be considered as the "last active monitor" for the purposes of Alt+tabbing the cursor location.

@fariadamasceno
Copy link

fariadamasceno commented Feb 10, 2023

I also vowel for such a feature, especially the third usage (move mouse cursor to the focused window).

Maybe it could be partially coded here:
https://github.com/rhinterndorfer/MousePointerReposition

I haven't tried it, though.

@crutkas
Copy link
Member

crutkas commented Feb 13, 2023

I bet #23216 may be a good solution. It is in Pull Request right now :)

@crutkas
Copy link
Member

crutkas commented Mar 24, 2023

Mouse jump was just added. I feel this is done now.

@crutkas crutkas closed this as completed Mar 24, 2023
@crutkas crutkas added the Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release. label Mar 24, 2023
@MaxZhuravlev
Copy link

Hint: after triggering mouse jump (Win+Shift+D by default), you can enter monitor Number (where to switch cursor) also from keyboard.

for example. Win+Shift+D, and then 5 -> moves your cursor 5th display

Helps in cases where you don't see current display where cursor is currently (another room, etc)

@ckarras
Copy link
Author

ckarras commented Feb 18, 2024

@MaxZhuravlev thanks for the information, this is much closer to what I had in mind with this feature request than what ended being implemented that still requires using the mouse to move the cursor to the desired location.

A few issues however:

  • For some reason, my monitors 1 and 2 are swapped (Win+Shift+2, 1 goes to monitor 2 and Win+Shift+D, 1 goes to monitor 1)
  • My monitors are physically in the following order: 1. one row with 3 2 4 5, then monitor 1 (laptop's built-in monitor) is in the middle under 2 and 4. So it would be useful to have a way to configure a mapping between monitor numbers in the OS and their physical layout.
  • A direct shortcut for each monitor (Win+Shift+1, Win+Shift+2, Win+Shift+3, etc) would be better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Idea-New PowerToy Suggestion for a PowerToy Product-Tweak UI Design Refers to the idea of a UI Design tweaker Resolution-Fix Committed Fix is checked in, but it might be 3-4 weeks until a release.
Projects
None yet
Development

No branches or pull requests

9 participants