Jump to content

set Priority In PixelSearch


Recommended Posts

Hello I wanted to set Priority In PixelSearch

Well I Have This Script:

Func _Bot()
While 1
$pixel = PixelSearch(0, 0, 1365, 767, 0x00FE23) <------- 1º
If IsArray($pixel) = True Then
 MouseMove($pixel [0], $pixel [1], 1)
EndIf

$pixel = PixelSearch(0, 0, 1365, 767, 0xE55CE5) <--------- 2º
If IsArray($pixel) = True Then
 MouseMove($pixel [0], $pixel [1], 1)
EndIf

$pixel = PixelSearch(0, 0, 1365, 767, 0xD4065E) <--------- 3º
If IsArray($pixel) = True Then
 MouseMove($pixel [0], $pixel [1], 1)
EndIf
WEnd
EndFunc


I wanted to set the first one as the main one if he had the 3 on the screen he would go first if he had the second and the third one would he go in the second?

1 = Main

2 = Intermediate

3 = Not Very Important :) (If You Have None Of The 2 Go To The 3rd)

Link to comment
Share on other sites

28 minutes ago, Fhelipe said:

Then people with the same script also have another problem I created a login script and the script is executed after logging in more after the script is done not only if I go to the icons and right click and click exit (By google translator)

 

Link to comment
Share on other sites

Link to comment
Share on other sites

6 hours ago, 232showtime said:

Com base no seu func im adivinhando isso é para o jogo, o aplicativo que você deseja automatizar?

Game... In case he has coins and eggs special Easter! So the priorities are the 2 in case if you have coins and eggs it goes in the first currency, if you do not have any of the 2 it will walk towards the 3rd you have everywhere until you find a coin and go in it or an egg (sorry google translator)

Link to comment
Share on other sites

  • Developers

As stated, game automation related threads are not allowed in our forums.
Please read our forum rules before posting again.

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

  • Jos locked this topic
Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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