MattNis Posted January 26, 2004 Share Posted January 26, 2004 (edited) 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 January 26, 2004 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 More sharing options...
cmallett Posted January 26, 2004 Share Posted January 26, 2004 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. Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 26, 2004 Administrators Share Posted January 26, 2004 Oh yeah, I remember now. Bah, just as I'd cleared lots of stuff from the todo list today. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted January 26, 2004 Administrators Share Posted January 26, 2004 M, try the new options in th 3.0.91 unstable version MouseClickDelay MouseClickDownDelay MouseClickDragDelay Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now