Draegon Posted October 29, 2009 Posted October 29, 2009 So what is does is clicks sevral pixels of 0x996A43, what it is supposed to do is click one and wait until it changes colour and switch, please help me! HotKeySet("{f4},","GetOut") sleep (3000) While 1 Do $pix = PixelSearch (0,0,@DesktopWidth,@DesktopHeight,0x996A43) MouseClick ("left",$pix[0],$pix[1],1,0) Sleep(200) Until $pix = @error WEnd Func GetOut() Exit EndFunc
omikron48 Posted October 29, 2009 Posted October 29, 2009 Try using PixelGetColor to check what color a pixel is and wait until it changes.
Draegon Posted October 29, 2009 Author Posted October 29, 2009 could you copy my script and add the PixelGetColor to it because I don't understand how to use it, also if this makes a difference the game screen moves back and forth disallowing the use of X,Y for most things. :/
JohnOne Posted October 29, 2009 Posted October 29, 2009 Mate, you will have problems trying to get someone to write a bot for you Sounds like a bot anyway, and also sounds like they dont want bots, lol Search the forums for "Aimbot" AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
NoHAX Posted October 29, 2009 Posted October 29, 2009 PixelSearch ( left, top, right, bottom, color [, shade-variation [, step [, hwnd]]] ) Look to shade-variation( [optional] A number between 0 and 255 to indicate the allowed number of shades of variation of the red, green, and blue components of the colour. Default is 0 (exact match). ) I think this is it, but i dont know how bug value of shades you must set
Draegon Posted October 29, 2009 Author Posted October 29, 2009 JohnOne "Mate, you will have problems trying to get someone to write a bot for you Sounds like a bot anyway, and also sounds like they dont want bots, lol Search the forums for "Aimbot" " Don't know how to quote so this will do, anyways, in a way I am sort of getting people to do stuff for me, but in a way I am doing it too. I get bits and pieces of info and throw them together, although I didn't understand my other asks for help so I needed someone to fix up my script, I am learning this way, getting small info piece and putting them together, more then I've ever learned with tutorials. PixelColorGet confused me so I asked if he could just put it in to the script I've done myself, I don't have problems with people doing it for me. :/
omikron48 Posted October 29, 2009 Posted October 29, 2009 HotKeySet("{f4},","GetOut") Sleep(3000) While 1 Do $pix = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0x996A43) MouseClick("left", $pix[0], $pix[1], 1, 0) While PixelGetColor($pix[0], $pix[1]) == 0x996A43 Sleep(100) WEnd Sleep(200) Until $pix = @error WEnd Func GetOut() Exit EndFunc
bo8ster Posted October 29, 2009 Posted October 29, 2009 Mate, you will have problems trying to get someone to write a bot for youSounds like a bot anyway, and also sounds like they dont want bots, lolSearch the forums for "Aimbot"Bots are fine here, as long as no one gets hurt Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]
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