SETMOUSE simply does not work for me, it seems to set a new mouse origin, not move the mouse pointer ("SETMOUSE 100,100", makes 100,100 = 0,0), never needed to use the command before. It should move the mouse pointer to a certain x,y? Not for me, simply changes the position of 0,0 (Top left) to a certain point on the screen?
Works as expected for me, this is the code I tested with:
SYSTEMPOINTER FALSE
LOCAL mx, my, b1, b2
WHILE TRUE
MOUSESTATE mx, my, b1, b2 // Grab current position
SETMOUSE 100, 100 // Reset mouse to 100,100
PRINT "mx:" + mx + " my:" + my, 0, 0
PRINT "X", mx, my // Display mouse position before resetting it
SHOWSCREEN
WEND
Ah, thanks Moru.
It looks like the problem is when it is used in conjunction with...
SYSTEMPOINTER TRUE
... it does not work.
Is this a bug or as M$ would say "a feature"? :S
No, it doesn't work with the systempointer
Thanks again for the clarification Moru. Not a big problem, I can use a sprite pointer.
Maybe it should be mentioned in the help file to avoid similar confusion though?