Jump to content
Sign in to follow this  
MattNis

Faster Mouseclick

Recommended Posts

MattNis

The code below is just not fast enough for me. What can I do to speed it up?

HotKeySet("!e","E")
AutoItSetOption("WinWaitDelay",0)
AutoItSetOption("SendKeyDelay", 0)

Sleep("7000")

While(1)
   For $x = 0 to 17
    for $y = 0 to 6
  MouseClick("left",265 + ($x*20), 560 - ($y*20), 1, 0)
    next
   next

   For $y = 0 to 6
    for $x = 0 to 17
  MouseClick("left",265 + ($x*20), 560 - ($y*20), 1, 0)
    next
   next
wend

func E()
Exit
endfunc

should I remove the multiplication operations and just move the actual x and y locations to an array? would array access be faster?

any tips of that sort would be appreciated.

thanks

Edited by MattNis

[quote]I was busy waiting all night for the Columbus Day Bunny to come down my chimney and light fireworks in my pumpkin.There's so much wrong with that.Oh, I'm sorry, i forgot you were Jewish.[/quote]

Share this post


Link to post
Share on other sites
cmallett

I believe MouseClick() has some hard-coded delays in it. That is most likely the largest bottleneck. Perhaps the dev. team can be persuaded to reduce these delays, or make them customizable.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.