darkleder31 Posted April 21, 2019 Share Posted April 21, 2019 autoitte I wrote a program but my computer is good, but the program is running very slow what should I change to make the program run faster ?? HotKeySet("{ESC}", "Terminate") Func Terminate() Exit EndFunc $kar = 0 While 1 if $kar == 0 Then $coord = PixelSearch(800, 510, 800, 510, 0xF70000, 1) If Not @error Then MouseClick("left",700,300) $kar += 1 EndIf EndIf if $kar == 1 Then $coord = PixelSearch(800, 200, 800, 200, 0xF70000, 1) If Not @error Then MouseClick("left",700,300) $kar -= 1 EndIf EndIf Sleep(1000) WEnd Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted April 21, 2019 Share Posted April 21, 2019 @darkleder31 It depends from which program you are trying to automate Maybe there's a more reliable way to automate it. darkleder31 1 Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
Developers Jos Posted April 21, 2019 Developers Share Posted April 21, 2019 Guess your clicker doesn't click faster than once per second and your "character" is killed by then? Jos darkleder31 and KickStarter15 1 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
darkleder31 Posted April 21, 2019 Author Share Posted April 21, 2019 my trying to automate game. When the screen is clicked, the character is jumping to the other wall. aim to advance without hitting red obstacles my program is red to detect the obstacles and click on the screen but click to lose 3 seconds after the game is losing. Link to comment Share on other sites More sharing options...
darkleder31 Posted April 21, 2019 Author Share Posted April 21, 2019 note: I deleted the Sleep (1000) command Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted April 21, 2019 Moderators Share Posted April 21, 2019 (edited) Quote my trying to automate game. Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. See you soon with a legitimate question I hope. The Moderation team Edited April 21, 2019 by JLogan3o13 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
Recommended Posts