Kenshin Posted January 29, 2009 Share Posted January 29, 2009 CODEHotKeySet("-","GoBot") HotKeySet("=","StopBot") While 1 Sleep(1) Wend Func GoBot() $math = 6512662 While 1 $Coords = PixelSearch(Random(360),Random(360),Random(360),Random(360), $math) If Not @Error Then MouseClick('Left', $Coords[0], $Coords[1]) Do Sleep(1000) Until PixelGetColor($Coords[0], $Coords[1]) <> $math Send("1") Sleep(10500999) Send("{f6}") Hp(); Wend EndFunc Func Hp() While 1 Send("{f8}") Sleep(32216067) WEnd EndFunc Func StopBot() Exit EndFunc Okay this is what I'm trying to get a specific color and click on it but all it does is click random locations. I would really appreciate some help.;] Thanks. Link to comment Share on other sites More sharing options...
qazwsx Posted January 29, 2009 Share Posted January 29, 2009 is the color you are looking for in those random locations? Because you seem to be searching random areas of the screen. Link to comment Share on other sites More sharing options...
CodyBarrett Posted January 29, 2009 Share Posted January 29, 2009 also... SORRY AUTOIT GUYS... but if your looking for a color, i recomend SCAR... but pixelgetcolor may do you better [size="1"][font="Tahoma"][COMPLETED]-----[FAILED]-----[ONGOING]VolumeControl|Binary Converter|CPU Usage| Mouse Wrap |WinHide|Word Scrammbler|LOCKER|SCREEN FREEZE|Decisions Decisions|Version UDF|Recast Desktop Mask|TCP Multiclient EXAMPLE|BTCP|LANCR|UDP serverless|AIOCR|OECR|Recast Messenger|AU3C|Tik-Tak-Toe|Snakes & Ladders|BattleShips|TRON|SNAKE_____________________[u]I love the Helpfile it is my best friend.[/u][/font][/size] Link to comment Share on other sites More sharing options...
Kenshin Posted January 30, 2009 Author Share Posted January 30, 2009 Yea I used PixelGetColor and printed it on a screen and copied it down to get the color.I really know no other way,so yes I'm searching for a color. Link to comment Share on other sites More sharing options...
Kenshin Posted January 30, 2009 Author Share Posted January 30, 2009 Yea I used PixelGetColor and printed it on a screen and copied it down to get the color.I really know no other way,so yes I'm searching for a color.Okay I was wrong I really wasn't searching for a color.Anyway I would like to point out the color I'm looking for:http://img220.imageshack.us/my.php?image=20090129223156nq7.pngIf anyones got that color code plz do share .Or knows a way to get color codes Really please share XD. Link to comment Share on other sites More sharing options...
capo Posted January 30, 2009 Share Posted January 30, 2009 You can use something like: Hotkeyset("{HOME}","GetPIXEL") While 1 Sleep(30) WEnd Func GetPIXEL() $mousepos = MouseGetPos() $color = PixelGetColor($mousepos[0],$mousepos[1]) msgbox(0,"color",$color) EndFunc to get a color under your mouse. Link to comment Share on other sites More sharing options...
BrettF Posted January 30, 2009 Share Posted January 30, 2009 (edited) OK. Here's a start to fix your epic failing. Firstly, that picture does nothing to help us. Where the hell is the color your are looking for? Tell us a specific RGB code (0xRRGGBB) and you may get somewhere. Now if you want to search an area of the screen use pixel search. Don't bother with the random crap, because it won't get you anywhere. If you want code, you can write it. This is about as simple as you get. If you insist on code examples, have a search. It has only been ask billions of times before. Also, don't bump your post unless it is 24 hours after your last post... (There is an edit button for adding additional information. Learn to use it)... Okay thats all I have to say. When you've had another go, and if you still can't work it out, post your code. Cheers, Brett Edited January 30, 2009 by BrettF Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! 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