Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
DAY 012: _MOUSEMOVE
#7
(11-17-2022, 11:25 PM)Pete Wrote: Oh big deal. Do it my way, like a true professional!

Code: (Select All)
SWAP y, x: _MOUSEMOVE y, x: SWAP y, x

Big Grin Big Grin Big Grin

I totally agree, complete PITA.

It's a very handy command if you use it to set the mouse cursor in a desired local after an event, but almost all the time users prefer to control the mouse on their own.

I haven't found it to be too useful if used as a limiting function. Say you are trying to highlight text with a mouse function. You are better off writing a routine to handle the racing issues, like I did for Sam Clip and my WP routines, than to try to take control of the mouse by using _MOUSEMOVE to set the mouse cursor only after the line is highlighted.

Pete

The only time I've found it useful is if I'm writing a demo program and want to move the mouse for the user to follow along visually with what I'm talking about.

PRINT "And here, in the top left corner of the screen, we see the rare Ooga-Booga.."
_MOUSEMOVE 10,10
_DELAY .25
PRINT "And, if you follow us over to the right side of the screen, and look behind the edge of the tree there, you'll see the elusive Petey Pooper..."
_MOUSEMOVE 1000, 250
_DELAY .25
....

If you move the mouse in a delayed loop, people are visual creatures -- you can easily draw their attention to wherever you want it to be on the screen, with very little effort.  Smile
Reply


Messages In This Thread
DAY 012: _MOUSEMOVE - by SMcNeill - 11-17-2022, 11:08 PM
RE: DAY 012: _MOUSEMOVE - by mnrvovrfc - 11-17-2022, 11:19 PM
RE: DAY 012: _MOUSEMOVE - by PhilOfPerth - 11-17-2022, 11:21 PM
RE: DAY 012: _MOUSEMOVE - by mnrvovrfc - 11-17-2022, 11:23 PM
RE: DAY 012: _MOUSEMOVE - by Pete - 11-17-2022, 11:25 PM
RE: DAY 012: _MOUSEMOVE - by SMcNeill - 11-18-2022, 12:15 AM
RE: DAY 012: _MOUSEMOVE - by mnrvovrfc - 11-17-2022, 11:36 PM
RE: DAY 012: _MOUSEMOVE - by Pete - 11-18-2022, 01:35 AM



Users browsing this thread: 2 Guest(s)