Sign in to follow this  
Followers 0
Gigity

The 'Newest of the New' tries to make MouseClickDrag work reliably

1 post in this topic

So. I'm staggering my way through the help file, looking for functions to patch together to get what I want done. I have the script activating a window, running, then going back to the file that holds the script so I can activate it again. Embarrassingly enough, this is for an mmorpg and I'm trying to partially automate a repetitive task because I've torn tendons in a major sprain from my wrist all the way to my elbow.

What follows is primitive, and I'm just getting a clue that there are functions, targeting, conditions, and options that are beyond me. The problem I'm having for now is that MouseClickDrag is not executing reliably. The many pauses are to let the server sync with my input, but that one function does not execute properly half the time. I'm not trying to win any races or fully automate, I just want to cycle through a few clicks, drags, and dropdowns like I could with a good mouse hand. Gawd knows how I'll get everything in the right place again to run this a second time, but I can deal with that until I figure out the better co-ordinate functions.

Any help with MouseClickDrag while I try to teach myself the rest would be aprreciated. I tried them with a slight speed modifier (20), but that made it work even less often or not at all.

btw: I'm a lefty, in case the mouseclicks look off.

MouseMove (1135, 490, 20)

Sleep (1000)

MouseClick ("right")

Sleep (1000)

MouseClickDrag ("right", 1135, 490, 732, 479)

Sleep (1000)

MouseMove (978, 324, 20)

Sleep (1000)

MouseClick ("left")

Sleep (2000)

Send ("4")

MouseMove (1135, 490, 20)

Sleep (1000)

MouseClick ("right")

Sleep (1000)

MouseClickDrag ("right", 1135, 490, 732, 479)

Sleep (1000)

MouseClick ("left")

Sleep (2000)

Send ("5")

MouseMove (815, 492, 20)

Sleep (1000)

MouseClick ("left")

Sleep (2000)

Send ("1")

MouseMove (1135, 490, 20)

Sleep (1000)

MouseClick ("right")

Sleep (1000)

MouseClickDrag ("right", 1135, 490, 586, 568)

Sleep (1000)

Send ("{ENTER}")

Sleep (2000)

MouseMove (1135, 490)

MouseClick ("right")

Sleep (1000)

MouseClickDrag ("right", 1135, 490, 732, 479)

Sleep (1000)

MouseClick ("left")

Sleep (2000)

Send ("4")

Sleep (500)

WinActivate ("AutoIt v3")

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