myth146 Posted May 9, 2009 Share Posted May 9, 2009 (edited) heres the code im working on, i am a noob so some the things i dont understand because not made by me $SearchColorRed = 0xFF0000 $aimbot = 0 HotKeySet("{UP}", "Toggleaimbot") While 1 If $aimbot = 1 Then $coord1 = PixelSearch( 227, 280, 1165, 791, $SearchColorRed, 2) If IsArray($coord1) = 1 Then MouseClick('left', $coord1[0], $coord1[1], 1, 0) Send ("{R}") EndIf EndIf WEnd Func Toggleaimbot() If $aimbot < 1 Then $aimbot = $aimbot + 1 Else $aimbot = 0 EndIf EndFunc i used hypercam 2 capture the x and y. can i do $coordinates = PixelSearch(342, 206, 636, 400, 0xFF0000, "", "", $wgh)?? im trying to make the aimbot look in to to areas in the yellow boxes Edited May 9, 2009 by myth146 Link to comment Share on other sites More sharing options...
billthecreator Posted May 9, 2009 Share Posted May 9, 2009 im trying to make an aimbot for this flash game called shooting gallery. the aimbot worked but it got distrated by the other pixels that look the same. my question is how can i make it search around this?Did you try making it search within a long rectangular box only where the targets are moving in? [font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap Link to comment Share on other sites More sharing options...
myth146 Posted May 9, 2009 Author Share Posted May 9, 2009 no.. Link to comment Share on other sites More sharing options...
Qousio Posted May 9, 2009 Share Posted May 9, 2009 no..Then try it. It should work just fine. Link to comment Share on other sites More sharing options...
myth146 Posted May 9, 2009 Author Share Posted May 9, 2009 but how though im new to this please help meh.. Link to comment Share on other sites More sharing options...
Qousio Posted May 9, 2009 Share Posted May 9, 2009 but how though im new to this please help meh.. PixelSearch ( left, top, right, bottom, color [, shade-variation [, step [, hwnd]]] ) You can find the coordinates with MouseGetPos or the au3info tool. You can find the colour with PixelGetColor. The left, top coordinates should be just above the target and bottom, right just below. Have fun. Link to comment Share on other sites More sharing options...
myth146 Posted May 9, 2009 Author Share Posted May 9, 2009 (edited) thanks but i have no clue what u said btw i updated it now Edited May 9, 2009 by myth146 Link to comment Share on other sites More sharing options...
Qousio Posted May 9, 2009 Share Posted May 9, 2009 thanks but i have no clue what u said btw i updated it now Change this line $coordinates = PixelSearch(320, 30, 420, 350, 0xFF0000, "", "", $wgh) You need to change 320, 30, 420, 350 so they correspond to leftmost part of the screen, top of the target, rightmost part of the screen, bottom of the target Link to comment Share on other sites More sharing options...
myth146 Posted May 9, 2009 Author Share Posted May 9, 2009 (edited) Change this line $coordinates = PixelSearch(320, 30, 420, 350, 0xFF0000, "", "", $wgh) You need to change 320, 30, 420, 350 so they correspond to leftmost part of the screen, top of the target, rightmost part of the screen, bottom of the target i used hypercam 2 capture the x and y. can i do $coordinates = PixelSearch(342, 206, 636, 400, 0xFF0000, "", "", $wgh)?? Edited May 9, 2009 by myth146 Link to comment Share on other sites More sharing options...
myth146 Posted May 9, 2009 Author Share Posted May 9, 2009 anyone? Link to comment Share on other sites More sharing options...
CodyBarrett Posted May 9, 2009 Share Posted May 9, 2009 please wait 24 hours to bump a thread... and no i don't know [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...
Qousio Posted May 9, 2009 Share Posted May 9, 2009 i used hypercam 2 capture the x and y. can i do $coordinates = PixelSearch(342, 206, 636, 400, 0xFF0000, "", "", $wgh)?? We can't say for sure because you have used hypercam, and I don't know what that is. Try using Au3info, its in your autoit folder. Link to comment Share on other sites More sharing options...
myth146 Posted May 9, 2009 Author Share Posted May 9, 2009 thanks gonna try now Link to comment Share on other sites More sharing options...
myth146 Posted May 9, 2009 Author Share Posted May 9, 2009 thank you Qousio for all your help works perfectly Link to comment Share on other sites More sharing options...
jason123456 Posted May 23, 2009 Share Posted May 23, 2009 thank you Qousio for all your help works perfectlycan u pls upload it onto zshare or megaupload and post the link. or just send me the link in a message. thanks 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