Jump to content
darkleder31

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

 

Share this post


Link to post
Share on other sites

@darkleder31
It depends from which program you are trying to automate :)
Maybe there's a more reliable way to automate it.


Click here to see my signature:

Spoiler

Thoughts:

  • I will always thank you for the time you spent for me.
    I'm here to ask, and from your response, I'd like to learn.
    By my knowledge, I can help someone else, and "that someone" could help in turn another, and so on.

/*--------------------------------------------------------------------------------------------------------------------------------------------------------------------------*/

ALWAYS GOOD TO READ:

 

Share this post


Link to post
Share on other sites

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
Posted (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 by JLogan3o13

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...