So what I thought should be doable with thee two commands cannot be accomplished.
Here is what the code demonstrates.
1) Sets the program screen to the top left corner of the desktop.
2) Make a screen click, which places the mouse at 0, 0 of your desktop.
3) Now carefully move the mouse around in the program screen, and after a bit, carefully move it back to the upper right corner.
Well it should be back to 0, 0, right? Well, far from it. I mean provided the mouse isn't moved past the borders of the desktop, I would think the relative coordinates should be the same at the same points the mouse originated from: 0, 0 when back at the top left side of the desktop.
Pete
Here is what the code demonstrates.
1) Sets the program screen to the top left corner of the desktop.
2) Make a screen click, which places the mouse at 0, 0 of your desktop.
3) Now carefully move the mouse around in the program screen, and after a bit, carefully move it back to the upper right corner.
Well it should be back to 0, 0, right? Well, far from it. I mean provided the mouse isn't moved past the borders of the desktop, I would think the relative coordinates should be the same at the same points the mouse originated from: 0, 0 when back at the top left side of the desktop.
Code: (Select All)
_SCREENMOVE 0, 0
_DELAY .1
_SCREENCLICK 0, 0
DO
_LIMIT 30
WHILE _MOUSEINPUT
x = x + _MOUSEMOVEMENTX
y = y + _MOUSEMOVEMENTY
WEND
LOCATE 1, 1: PRINT y; x; " ";
IF LEN(INKEY$) THEN
EXIT DO
END IF
LOOP
END
Pete