Sign in to follow this  
Followers 0
Ultratech

Sending to window

3 posts in this topic

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?

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0