Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Move Mouse in a Single Axis
#2
Macro Macro3111
Code:
Copy      Help
int vertical=1 ;;0 horizontal, 1 vertical

POINT p; xm p
int sx sy sw sh; GetVirtualScreen sx sy sw sh
RECT r

if vertical
,r.top=sy
,r.bottom=sy+sh
,r.left=p.x
,r.right=p.x
else
,r.left=sx
,r.right=sx+sw
,r.top=p.y
,r.bottom=p.y
ClipCursor &r
5
ClipCursor 0


Messages In This Thread
Move Mouse in a Single Axis - by ken gray - 03-24-2021, 01:34 PM
RE: Move Mouse in a Single Axis - by Gintaras - 03-24-2021, 01:58 PM
RE: Move Mouse in a Single Axis - by ken gray - 03-24-2021, 07:45 PM
RE: Move Mouse in a Single Axis - by stupomer - 04-13-2021, 11:37 AM
RE: Move Mouse in a Single Axis - by ken gray - 04-13-2021, 04:06 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)