Jump to content

Faster Mouseclick


MattNis
 Share

Recommended Posts

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]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...