CookieCop Posted September 23, 2006 Share Posted September 23, 2006 (edited) Ok, need some help with an aimbot in progress. Can someone provide a script that puts the cursor over hexcolor:646464 (R:100 G:100 B:100) when you left click? Any help is GREATLY appreciated. EDIT: Forgot to mention, also looking for a script that when it finds hexcolor: FF0000 (R:255) it left clicks. Again, any help is appreciated. Edited September 23, 2006 by CookieCop Link to comment Share on other sites More sharing options...
lolp1 Posted September 23, 2006 Share Posted September 23, 2006 Ok, need some help with an aimbot in progress. Can someone provide a script that puts the cursor over hexcolor:646464 (R:100 G:100 B:100) when you left click? Any help is GREATLY appreciated. #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 If _IsPressed(" 01", $dll) Then $coord = PixelSearch( 0, 0, 800, 600, 646464, 5, 5 ) If Not @error Then MouseClick("Left", $coord[0], $coord[1], 1, 3 ) ExitLoop EndIf WEnd DllClose($dll) Link to comment Share on other sites More sharing options...
lolp1 Posted September 23, 2006 Share Posted September 23, 2006 Ok, need some help with an aimbot in progress. Can someone provide a script that puts the cursor over hexcolor:646464 (R:100 G:100 B:100) when you left click? Any help is GREATLY appreciated. #include <Misc.au3> $dll = DllOpen("user32.dll") While 1 If _IsPressed(" 01", $dll) Then $coord = PixelSearch( 0, 0, 800, 600, 646464, 5, 0 ) If Not @error Then MouseClick("Left", $coord[0], $coord[1], 1, 3 ) ExitLoop EndIf WEnd DllClose($dll) Link to comment Share on other sites More sharing options...
AzKay Posted September 23, 2006 Share Posted September 23, 2006 (edited) Oh, and you dont need the dllcalls there. #include <Misc.au3> While 1 If _IsPressed("01") Then $coord = PixelSearch(0, 0, 800, 600, 0x646464) If Not @error Then MouseClick("Left", $coord[0], $coord[1], 1, 1) ExitLoop EndIf EndIf WEnd Edited September 23, 2006 by AzKay # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
CookieCop Posted September 23, 2006 Author Share Posted September 23, 2006 Oh, and you dont need the dllcalls there. #include <Misc.au3> While 1 If _IsPressed("01") Then $coord = PixelSearch(0, 0, 800, 600, 0x646464) If Not @error Then MouseClick("Left", $coord[0], $coord[1], 1, 1) ExitLoop EndIf EndIf WEndAlready did that, but thanks for telling me about the dllcalls. Anyone have an idea how to do the second script? (Script that when it finds hexcolor: FF0000 (R:255) it left clicks.) Link to comment Share on other sites More sharing options...
AzKay Posted September 23, 2006 Share Posted September 23, 2006 (edited) #include <Misc.au3> While 1 If _IsPressed("01") Then $coord = PixelSearch(0, 0, 800, 600, 0x646464) If Not @error Then MouseClick("Left", $coord[0], $coord[1], 1, 1) $coord2 = PixelSearch(0, 0, 800, 600, 0xFF0000) If Not @error Then MouseClick("Left", $coord2[0], $coord2[1], 1, 1) ExitLoop EndIf EndIf EndIf WEnd Edited September 23, 2006 by AzKay # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
CookieCop Posted September 23, 2006 Author Share Posted September 23, 2006 (edited) #include <Misc.au3> While 1 If _IsPressed("01") Then $coord = PixelSearch(0, 0, 800, 600, 0x646464) If Not @error Then MouseClick("Left", $coord[0], $coord[1], 1, 1) $coord2 = PixelSearch(0, 0, 800, 600, 0xFF0000) If Not @error Then MouseClick("Left", $coord2[0], $coord2[1], 1, 1) ExitLoop EndIf EndIf EndIf WEndErr, you misunderstood. =) This second script has no relation to the previous one, completely separate. Script Function: When FF0000 is found, script left clicks. (When crosshair turns red, script left clicks) (Other Topic: Is there any way so that when a script finds an image, it left clicks? If possible please reply) Edited September 23, 2006 by CookieCop Link to comment Share on other sites More sharing options...
AzKay Posted September 23, 2006 Share Posted September 23, 2006 Well, it should be the same as the last script, just replace the 0x646464 to 0xFF0000 # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Vivvic Posted September 23, 2006 Share Posted September 23, 2006 (edited) You could make a search for analizer.dll, it should be what you need if you need to look for a picture.EDIT: http://www.autoitscript.com/forum/index.ph...hl=analizer.dll Edited September 23, 2006 by Vivvic [quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote] Link to comment Share on other sites More sharing options...
CookieCop Posted September 23, 2006 Author Share Posted September 23, 2006 (edited) Well, it should be the same as the last script, just replace the 0x646464 to 0xFF0000You still have the wrong idea. =)The first script (The one with the color 646464) is a script that when you left click, it moves to 646464.This second script, is a script that when it finds FF0000 (The crosshair turns red) that's when it left clicks.Hopefully you understand now. You could make a search for analizer.dll, it should be what you need if you need to look for a picture.EDIT: http://www.autoitscript.com/forum/index.ph...hl=analizer.dllErr, that's kinda what I need. But too complicated in my opinion.I'm thinking just a short, simple script that left clicks when it finds FF0000/when the crosshair turns red. Edited September 23, 2006 by CookieCop Link to comment Share on other sites More sharing options...
CookieCop Posted September 23, 2006 Author Share Posted September 23, 2006 (edited) Ok, so I decided to try and write the 2nd script again. While 1 $coord = PixelSearch( 0, 0, 30, 30, 0xFF0000 ) If Not @error Then MouseClick("Left") EndIf WEnd I did that. It works perfectly when I set it to $coord = PixelSearch( 0, 0, 800, 600, 0xFF0000 ). But, I don't want it scan the whole screen.. I want it to scan something like a 30 x 30 pixel square around the CENTRE of the screen. (If the resolution is of any relevance my setting is 800 x 600) Any help is appreciated. Edited September 23, 2006 by CookieCop Link to comment Share on other sites More sharing options...
darkshadow791 Posted September 24, 2006 Share Posted September 24, 2006 (edited) While 1 $coord = PixelSearch( (@DesktopWidth / 2) - 30, (@DesktopHeight / 2) + 30, (@DesktopWidth / 2) + 30, (@DesktopHeight / 2) - 30, 0xFF0000 ) If Not @error Then MouseClick("Left", $coord[0], $coord[1]) EndIf WEnd Edited September 24, 2006 by darkshadow791 Note Taker Lite - a note taking / converting tool. Link to comment Share on other sites More sharing options...
CookieCop Posted September 24, 2006 Author Share Posted September 24, 2006 (edited) While 1 $coord = PixelSearch( (@DesktopWidth / 2) - 30, (@DesktopHeight / 2) + 30, (@DesktopWidth / 2) + 30, (@DesktopHeight / 2) - 30, 0xFF0000 ) If Not @error Then MouseClick("Left", $coord[0], $coord[1]) EndIf WEndMaybe it's just me, but I can't get that to work. I'll play around with it for a bit and see if I can get it working. EDIT: Did a few experiments with those settings, doesn't work for me. $coord = PixelSearch( 0, 0, 0, 0, 0xFF0000 ) is the setting that works for me, can someone edit that line so that it searchs a 30 x 30 pixel square around the center of the screen please? I've been trying and trying but can't figure it out. (I also just changed my resolution to 1024 x 768, but I don't think that should be causing any problems with the script that darkshadow791 provided because I also tried it with 800 x 600 resolution.) Edited September 24, 2006 by CookieCop Link to comment Share on other sites More sharing options...
darkshadow791 Posted September 24, 2006 Share Posted September 24, 2006 (edited) $xx = @DesktopWidth / 2 $yy = @DesktopHeight / 2 While 1 $coord = PixelSearch( $xx - 30, $yy + 30, $xx + 30, $yy - 30, 0xFF0000 ) If Not @error Then MouseClick("Left", $coord[0], $coord[1]) EndIf WEndoÝ÷ ØêÚºÚ"µÍÌÍÞHÚÝÜÚYÈÌÍÞ^HHÚÝÜZYÚÈÚ[HBÌÍØÛÛÜH^[ÙXÚ ÌÍÞHÌ ÌÍÞ^H ÈÌ ÌÍÞ ÈÌ ÌÍÞ^HHÌMH BYÐ^J ÌÍØÛÛÜ H[[ÝÙPÛXÚÊ ][ÝÓY ][ÝË ÌÍØÛÛÜÌK ÌÍØÛÛÜÌWJB[YÑ[ Edited September 24, 2006 by darkshadow791 Note Taker Lite - a note taking / converting tool. Link to comment Share on other sites More sharing options...
CookieCop Posted September 24, 2006 Author Share Posted September 24, 2006 (edited) $xx = @DesktopWidth / 2 $yy = @DesktopHeight / 2 While 1 $coord = PixelSearch( $xx - 30, $yy + 30, $xx + 30, $yy - 30, 0xFF0000 ) If Not @error Then MouseClick("Left", $coord[0], $coord[1]) EndIf WEndoÝ÷ ØêÚºÚ"µÍÌÍÞHÚÝÜÚYÈÌÍÞ^HHÚÝÜZYÚÈÚ[HBÌÍØÛÛÜH^[ÙXÚ ÌÍÞHÌ ÌÍÞ^H ÈÌ ÌÍÞ ÈÌ ÌÍÞ^HHÌMH BYÐ^J ÌÍØÛÛÜ H[[ÝÙPÛXÚÊ ][ÝÓY ][ÝË ÌÍØÛÛÜÌK ÌÍØÛÛÜÌWJB[YÑ[Thanks, testing now. Will edit with how it went. EDIT: Alright, it didn't work. So after all this trial and error, I've decided to just change the color of the crosshair to bright purple (A color hardly used in the game) and make the script scan the whole screen of that color. Edited September 24, 2006 by CookieCop 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