Jump to content

Autoit project running very slow - (Locked) - (Moved)


Recommended Posts

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

  • Developers

Guess your clicker doesn't click faster than once per second and your "character" is killed by then?

Jos

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

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.

 

Ekran Görüntüsü (5).png

Ekran Görüntüsü (7).png

Link to comment
Share on other sites

  • Moderators
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 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

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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