Fhelipe

set Priority In PixelSearch

6 posts in this topic

#1 ·  Posted

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)

Share this post


Link to post
Share on other sites



#2 ·  Posted

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)

 

Share this post


Link to post
Share on other sites

#3 ·  Posted

You have to build the logic yourself to prioritize/order the operations.  

Not trying to be rude or make unnecessary accusations, but we do not support scripts for games on this forum.  

What is this bot for?

Share this post


Link to post
Share on other sites

#4 ·  Posted

3 hours ago, Fhelipe said:

Func _Bot()

based on your func im guessing this is for game, what application you want to automate?


ill get to that... i still need to learn and understand a lot of codes graduated.gif

Correct answer, learn to walk before you take on that marathon.

Share this post


Link to post
Share on other sites

#5 ·  Posted

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)

Share this post


Link to post
Share on other sites

#6 ·  Posted

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

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


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