Guest Fanatic Posted September 23, 2004 Share Posted September 23, 2004 Well im making a Script for a game and i got a small problem... Func uh () BlockInput (1) MouseClick ("right", $xuh, $yuh, 1, 0) MouseClick ("left", $xplayer, $yplayer, 1, 0) BlockInput (0) EndFunc Thats one of my Hotkeys, and to the other one i want it to get the Mouse position... it still should first right click on the "uh" (MouseClick ("right", $xuh, $yuh, 1, 0)) But instead that i need to write the postion in the script like i have now when you left click i want it to take the position from where the mouse is... Like if im holding my mouse over something and then it should go to another position, right click, and then go back to the position where i had the mouse before i pressed the hotkey and then it should left click... Hope you understood this. Signed, Fanatic. Link to comment Share on other sites More sharing options...
emmanuel Posted September 23, 2004 Share Posted September 23, 2004 I had a similar need, here's what I did: $MOUSEPOS = MouseGetPos();get the current position before clicking somewhere else ;clicksomewhere else MouseMove($MOUSEPOS[0], $MOUSEPOS[1], 1);put it back where it was at the mousegetpos "I'm not even supposed to be here today!" -Dante (Hicks) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now