bigassmuffin Posted May 9, 2006 Share Posted May 9, 2006 RANDOM EXAMPLE..I want my autoit script to find the color RED between coords 100,100 and 200,200now, my problem is WHAT HAPPENS NEXT?Say I want it to:If it reads the color RED in there, I want it to Left click on that red pixelIf it doesn't, I want it to play a loop() funtion.. so it cn try again with delay like..loop()Send(10000) ;10 secondsMy main problem is how do I do the part that I underlined above?If posilbe, I would appreciate help or a smaple script.THANKS! Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted May 9, 2006 Share Posted May 9, 2006 check out pixelsearch and then @error and mouseclick lol i would write on but there are so many on the forum im scared of copyright infringment Link to comment Share on other sites More sharing options...
bigassmuffin Posted May 9, 2006 Author Share Posted May 9, 2006 check out pixelsearch and then @error and mouseclick lol i would write on but there are so many on the forum im scared of copyright infringmentLol..Ill search a bbit more, meanwhile, if anyone else can help me, I really appreciate it,THANKS Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 9, 2006 Moderators Share Posted May 9, 2006 Lol..Ill search a bbit more, meanwhile, if anyone else can help me, I really appreciate it,THANKSIs using the search function and typing in "PixelSearch" that difficult?http://www.autoitscript.com/forum/index.ph...ndpost&p=180413That's an exact example of what you need, you just need to replace the color with whatever color you want. (use the AutoInfo tool to decide what the hex color is you want.) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
bigassmuffin Posted May 9, 2006 Author Share Posted May 9, 2006 Is using the search function and typing in "PixelSearch" that difficult?http://www.autoitscript.com/forum/index.ph...ndpost&p=180413That's an exact example of what you need, you just need to replace the color with whatever color you want. (use the AutoInfo tool to decide what the hex color is you want.)Wow, much easier then I htought, thanks Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted May 9, 2006 Moderators Share Posted May 9, 2006 Wow, much easier then I htought, thanksAmazing what using the Search function can do huh... Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
bigassmuffin Posted May 9, 2006 Author Share Posted May 9, 2006 Ok..works great..but I have another similar question.. Say.. I want it to see if cordinates 50,50 was red, blue, green And if red it would Press F1 If blue it would start script over If Green it would skip to a part in the script that I set it to. Can you please help me with a code for this..or for some of this... I dont care about the colors, you don't have to find the color code, jsut type in Color 1 where uit should go and stuff.. Thanks so much for your help and time! Link to comment Share on other sites More sharing options...
w0uter Posted May 9, 2006 Share Posted May 9, 2006 read the helpfile. PixelGetColor My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll Link to comment Share on other sites More sharing options...
Paulie Posted May 9, 2006 Share Posted May 9, 2006 (edited) Ok..works great..but I have another similar question.. Say.. I want it to see if cordinates 50,50 was red, blue, green And if red it would Press F1 If blue it would start script over If Green it would skip to a part in the script that I set it to. Can you please help me with a code for this..or for some of this... I dont care about the colors, you don't have to find the color code, jsut type in Color 1 where uit should go and stuff.. Thanks so much for your help and time!looks like Someone's looking for a game bot unfortunatley, i love writing pixel codes While 1 $var = Pixelgetcolor(50,50) If Hex($var) = *hex code for red* then Send("{F1}");I'm not sure if you can send func keys, but if you can, this is my guess Endif If Hex($var) = *Hex for green* then ;Type part of script here Endif If Hex($var) = *hex for blue* then Continueloop(1) Endif Wend Try something like that (I at least gave you something to figure out on your own(hex colors)) You could use a select/case statement here, but its up to you Thanks so much for your help and time!Your welcome Edit: just noticed this check out pixelsearch and then @error and mouseclick lol i would write on but there are so many on the forum im scared of copyright infringmentlol QFT Edited May 9, 2006 by Paulie Link to comment Share on other sites More sharing options...
bigassmuffin Posted May 10, 2006 Author Share Posted May 10, 2006 looks like Someone's looking for a game bot unfortunatley, i love writing pixel codes While 1 $var = Pixelgetcolor(50,50) If Hex($var) = *hex code for red* then Send("{F1}");I'm not sure if you can send func keys, but if you can, this is my guess Endif If Hex($var) = *Hex for green* then ;Type part of script here Endif If Hex($var) = *hex for blue* then Continueloop(1) Endif Wend Try something like that (I at least gave you something to figure out on your own(hex colors)) You could use a select/case statement here, but its up to you Your welcome Edit: just noticed this lol QFT TY SO MUCH! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now