Juggernaut Posted March 8, 2009 Posted March 8, 2009 I know how to use pixelsearch, but i am really REALLY used to just searching the whole screen. But today i found myself coding something that required different rectangles. Now, i do not really understand how to make a rectangle with this: PixelSearch ( left, top, right, bottom, etc... Left: Left-Top? Left side of the rectangle? IDK! Same for all sides...any help?
BrettF Posted March 8, 2009 Posted March 8, 2009 Makes perfect sense to me when I try stuff. Does this picture help? 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!
Juggernaut Posted March 8, 2009 Author Posted March 8, 2009 (edited) Ah....thats what I was thinking it was, thanks Well, I don't know why this isn't working....its detecting on my desktop but not in-game... expandcollapse popup;88FE00 - terrorist - green ;E607FF - counter terrorist - purple global $target_Terrorist, $coord, $target_counter HotKeySet("z", "qt") Func qt() Exit EndFunc HotKeySet(",", "terrorist") Func terrorist() $target_Terrorist = 1 $target_counter = 0 tooltip("Target set to terrorist", 0, 0) EndFunc HotKeySet(".", "counter") Func counter() $target_counter = 1 $target_Terrorist = 0 tooltip("Target set to counter-terrorist", 0, 0) EndFunc HotKeySet("/", "target_off") Func target_off() $target_counter = 0 $target_Terrorist = 0 tooltip("Target disengaged!", 0, 0) EndFunc while 1 if $target_Terrorist = 1 then ;$coord = PixelSearch(0, 0, @DeskTopWidth, @DeskTopHeight, 0x88FE00, 7) $coord = PixelSearch(430, 320, 590, 440, 0x88FE00, 200) If @error Then ;Msgbox(0,'Error','Could not find the pixel') Else MouseMove($coord[0],$coord[1]) ;MouseClick("left",$coord[0],$coord[1],1) EndIf EndIf if $target_counter = 1 then ;$coord = PixelSearch(0, 0, @DeskTopWidth, @DeskTopHeight, 0xE607FF, 7) $coord = PixelSearch(430, 320, 590, 440, 0xE607FF, 200) If @error Then ;Msgbox(0,'Error','Could not find the pixel') Else MouseMove($coord[0],$coord[1]) ;MouseClick("left",$coord[0],$coord[1],1) EndIf EndIf WEnd I know the pixel-variation is extremely high, but that is because nothing is working... Edited March 8, 2009 by Juggernaut
Malkey Posted March 8, 2009 Posted March 8, 2009 Ah....thats what I was thinking it was, thanks Well, I don't know why this isn't working....its detecting on my desktop but not in-game... $coord = PixelSearch(0, 0, @DeskTopWidth, @DeskTopHeight, 0xE607FF, 7) $coord = PixelSearch(430, 320, 590, 440, 0xE607FF, 200) I know the pixel-variation is extremely high, but that is because nothing is working... The last parameter of PixelSearch is hwnd - [optional] Window handle to be used. You have not entered a window handle of the window to search in. WinGetHandle function should help. And, Au3Info.exe in the AutoIt3 directory to find the title of the window, being the parameter of WinGetHandle function.
Juggernaut Posted March 8, 2009 Author Posted March 8, 2009 Well right now im doing something that SHOULD be very very damn simple...but i have no idea why its not working.. ;tankjr bright green ------9EF042 global $coord, $aim_on HotKeySet("z", "qt") Func qt() Exit EndFunc HotKeySet("f", "on") Func on() $aim_on = 1 tooltip("Aimbot on!", 0, 0) EndFunc HotKeySet("g", "off") Func off() $aim_on = 0 tooltip("Aimbot off!", 0, 0, "", 0, 4) EndFunc while 1=1 if $aim_on = 1 then ;$coord = PixelSearch(0, 0, @DeskTopWidth, @DeskTopHeight, 0x9EF042, 50) $coord = PixelSearch(300, 300, 300, 300, 0x9EF042, 25, 1, "QUAKE LIVE - Mozilla Firefox") If @error Then ;Msgbox(0,'Error','Could not find the pixel') Else MouseMove($coord[0],$coord[1]) ;MouseClick("left",$coord[0],$coord[1],1) EndIf EndIf Wend
Juggernaut Posted March 8, 2009 Author Posted March 8, 2009 okay...i need some real help...im getting so frustrated by this =\
Malkey Posted March 8, 2009 Posted March 8, 2009 okay...i need some real help...im getting so frustrated by this =\Try$coord = PixelSearch(300, 300, 300, 300, 0x9EF042, 25, 1, WinGetHandle("QUAKE LIVE - Mozilla Firefox"))
Malkey Posted March 8, 2009 Posted March 8, 2009 Nope, still not working...=XSilly me$coord = PixelSearch(300, 300, 300, 300, 0x9EF042, 25, 1, WinGetHandle("QUAKE LIVE - Mozilla Firefox")) Remember your first post "left, top, right, bottom,.."300, 300, 300, 300 is not a rectangle0,0,300,300 would be a square with the top left corner at point 0,0 and bottom right corner at point 300.300So if the pixel you are searching for is in that 300x300 area at the top left corner of the window, then try $coord = PixelSearch(0, 0, 300, 300, 0x9EF042, 25, 1, WinGetHandle("QUAKE LIVE - Mozilla Firefox"))
Juggernaut Posted March 8, 2009 Author Posted March 8, 2009 I've tried that aswell. I don't know what it is...but its not working =| I have to set the shade variation to like 255 JUST go get my mouse to move..i've also tried recoding it from scratch a few times, but still nothing is working...
Juggernaut Posted March 8, 2009 Author Posted March 8, 2009 I've figured this out: If im playing through the browser, when it detects the pixel it makes my crosshair go straight to the top, and if im playing in full-screen, it doesn't do anything...
Malkey Posted March 8, 2009 Posted March 8, 2009 Just below the declared global variables insert Opt("MouseCoordMode", 2) ;1=absolute, 0=relative, 2=client This might work.
Juggernaut Posted March 8, 2009 Author Posted March 8, 2009 Nope, still auto-targeting to top while in browser, and nothing in fullscreen. I've tried so many damn pixels. It detects outside of the game, but not in...idk why..it did this with counter-strike too
Malkey Posted March 8, 2009 Posted March 8, 2009 The only thing I can think of is to search the forums to find a solution.This thread might helphttp://www.autoitscript.com/forum/index.ph...st&p=304338I searched on "counter-strike" +pixelsearch in the "More Search Options" at the top of the page under "Search"and used "Show results as posts" option.Good luck.
Juggernaut Posted March 8, 2009 Author Posted March 8, 2009 Well thanks a ton for all your help, maybe ill try to lookup a VB aimbot tutorial or somethin....
Juggernaut Posted March 8, 2009 Author Posted March 8, 2009 Anyone else think they can give me a hand?
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