Sign in to follow this  
Followers 0
PsychicHigh

MouseClickDrag() plus Random()

5 posts in this topic

Added in some randomness to the MouseClickDrag function so it would seem as if it's normal human input.

MouseClickDrag("left", Random(693, 726, 1), Random(114, 145, 1), Random(684, 713, 1), Random(399, 428, 1), Random(3, 6, 1))

The moment I added in the randomness it seems to almost break the code, as if mouse clicks were missing. I increased the mouse click delays and still seemed to not pick up the mouse clicks.

Opt("MouseClickDownDelay",100)

Do I have to set temporary variables using Random() then call the variables from MouseClickDrag() or should something like this actually work?

Share this post


Link to post
Share on other sites



Thanks for the quick response on this.

I'm using the latest beta as well, maybe I changed something else in the code by accident.

I'll take a look through and check it out.

Share this post


Link to post
Share on other sites

Always welcome to assist, let me know wether it works out or not. I just can't stand those little 'syntax' error Au3 Check doesn't detect.

Share this post


Link to post
Share on other sites

It worked eventually. Took me a while to find the mistake, but I did right click instead of left click, and copied it to several parts of the script where it was supposed to left click.

Big oops on my part.

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