PDA

View Full Version : Find mouse current position?



hlstriker
12-19-2006, 02:38 AM
Hi, how can I find the cursors current position?

I tried to use...
mouse(x, y, 0, 0, true);
... for a mouse click, but it would move the mouse all the way to coord 0,0 instead of clicking in the current position.

Boreas
12-19-2006, 02:42 AM
getmousepos(x,y) will return the location to x,y

hlstriker
12-19-2006, 02:44 AM
Thanks, Boreas :)!

Junior
12-19-2006, 03:45 AM
Dude no offense, but your a SRL member and you didn't know that?

hlstriker
12-19-2006, 04:25 AM
Sorry, I just got back into ScuneRape and coding with Pascal. Tons of the functions have changed since I last was here. I'm just trying to rub some rust off. That was also probably my only real nooby question I will be asking ;).

Pyro
12-19-2006, 05:33 AM
hlstriker dont be afraid to ask a "nooby" question. Its the only way you can learn