Do the mouse pointer make a hyper jump?

I run setup with two monitors.

Moving from a monitor from 1 to 2 (or vice versa) requires a lot of unnecessary mouse movement.

My thought was to use an extra mouse button (I have two) and have a mouse hyper-jump (apologies to Star Trek) from the XY coordinates on monitor 1 to the same XY coordinates on monitor 2.

How should I do it?

Can this be done using C #?

+3
source share
3 answers

As for coordinates, two monitors stick together as one large area.

Screen.AllScreens, , , Cursor.Position, .

+5

#, . , deltreme, Cursor.Position, , , .

, , - , AutoHotkey AutoIt.

script AutoIt, :

HotKeySet("{F6}", "Jump")

While True
WEnd

Func Jump()
    MouseMove(-500, 500, 0)
EndFunc
+2

WH_MOUSE_LL SetWindowsHookEx(), , . # . MouseMessages, , . - 0x207, X- - 0x20b. , , , .

, Cursor.Position. Screen . 3- .

+2

Source: https://habr.com/ru/post/1750285/


All Articles