Fhelipe Posted April 19, 2017 Share Posted April 19, 2017 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 More sharing options...
Fhelipe Posted April 19, 2017 Author Share Posted April 19, 2017 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 More sharing options...
spudw2k Posted April 19, 2017 Share Posted April 19, 2017 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? Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
232showtime Posted April 19, 2017 Share Posted April 19, 2017 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 Correct answer, learn to walk before you take on that marathon. Link to comment Share on other sites More sharing options...
Fhelipe Posted April 19, 2017 Author Share Posted April 19, 2017 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 More sharing options...
Developers Jos Posted April 19, 2017 Developers Share Posted April 19, 2017 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 More sharing options...
Recommended Posts