在两个显示器之间移动鼠标



如何使用键盘快捷键在显示器之间移动鼠标指针?我正在使用自动热键。

我没有找到一个简单的答案,下面是我的建议。

下面是我的方法,使用Ctrl+Space实现这个函数:

^Space::
CoordMode, Mouse, Screen ; This is needed to assure that you get your mouse coordinates related to the screen, not to the window 
MouseGetPos, MouseX, MouseY
if( MouseX > 1920) ; 1920 is the Width of my monitor number 1, replace it with yours
{
MouseMove, -A_ScreenWidth, 0, 0, R
}
else
{
MouseMove, A_ScreenWidth, 0, 0, R
}
return

最新更新