kosmas Posted August 27, 2019 Share Posted August 27, 2019 i wanna make a script (not huge if i possible) that searches a pixel for a color and if its not present move to a next one and repeat. something like: func findGoods ($count) Sleep (1000) for $x = 1 to $count PixelSearch (1140,600,1140,600, 0x033F45,50) if (@error) Then MouseClick ("right" ,1140,600,1,1) Sleep (50) Else PixelSearch (1140,600,1140,640, 0x033F45,50) if (@error) Then MouseClick ("right" ,1140,640,1,1) Sleep (50) Else PixelSearch (1140,600,1140,680, 0x033F45,50) if (@error) Then MouseClick ("right" ,1140,680,1,1) Sleep (50) Else EndIf EndIf EndIf Next EndFunc This doesnt work. only right clicks the first slot and then moves to the next function. If anyone has a better Idea... I would much appreciate it Link to comment Share on other sites More sharing options...
kosmas Posted August 27, 2019 Author Share Posted August 27, 2019 Link to comment Share on other sites More sharing options...
seadoggie01 Posted August 27, 2019 Share Posted August 27, 2019 And what are you trying to do? Using PixelSearch is almost never the answer... Either way, you're searching in a line. Try using the AutoIt Window Info tool to see where those points actually are. All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types Link to comment Share on other sites More sharing options...
kosmas Posted August 28, 2019 Author Share Posted August 28, 2019 im trying to make a little bot that searches through inventory and if a slot is not empty (different color than the backround) it clicks to sell it. Its becoming painfull for my wrist doing this again and again Link to comment Share on other sites More sharing options...
kosmas Posted August 28, 2019 Author Share Posted August 28, 2019 I Changed my way of thinking and put a number of pixelsearch looking for possible colors of loot. once it clicks them they change color so it skips to the next etc. One line is bugged and clicks the same one again and again. Is there a way to log their results to find one what color is the problematic one? thank you in advance. ps. sorry if they are noobish questions, I just downloaded the program yesterday and never had experience with coding or boting or anything so if there are better ways of doing things im open to suggestions. I am just reading through examples and help files and thinking "what could work for me" Link to comment Share on other sites More sharing options...
Developers Jos Posted August 28, 2019 Developers Share Posted August 28, 2019 @kosmas, Your thread posts has now been reported some 5 times by different users and they all seem to think you are automating a game.... is this the case? Either way: Please read our forum rules to get yourself familiarized with them. 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...
kosmas Posted August 30, 2019 Author Share Posted August 30, 2019 I am so very terribly sorry😳. Yes, this is the case and true, i didn't read the rules. To be honest, That was my first goal, and that's why I downloaded Autoit. Now im not even playing anymore. I just explore a program i fell in love with😂 Link to comment Share on other sites More sharing options...
Developers Jos Posted August 30, 2019 Developers Share Posted August 30, 2019 Welcome to the AutoIt forum. 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 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