Ultratech Posted January 13, 2007 Posted January 13, 2007 I'm making a script for a game that allows my character to attack or type even if the window is minimized. I have used ControlSend, ControlMove, and ControlClick and none of them seem to be working. Anyone have advice?
Bert Posted January 13, 2007 Posted January 13, 2007 can you post your code so we can see what is wrong? That would help. The Vollatran project My blog: http://www.vollysinterestingshit.com/
Ultratech Posted January 13, 2007 Author Posted January 13, 2007 I have some problems fixed. The only problem now is I want it to hold shift, and move the mouse to the center of the window. Whne the window is minimzed it move sthe mouse to the top left. SHIFTDOWN isn't going through either [/autoit]Sleep(3000) $handle = WinGetHandle("Diablo 2", "") ControlSend("Diablo 2", "", $handle, "{SHIFTDOWN}") Sleep(1000) ControlClick("Diablo 2", "", $handle, "left") Sleep(1000) ControlSend("Diablo 2", "", $handle, "{SHIFTUP}")[autoit] Is there another way to hold shift down and left/right click? And I can't seem to fix the mouse coordinate problem.
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