Killzone21 Posted March 18, 2008 Share Posted March 18, 2008 Ok am pretty new to autoit. I created a pixel search and click script the find the color blue and clicks on it. Here is the code: HotKeySet("{PAUSE}", "_click") HotKeySet("{END}", "_stop") Global $Started = False While 1 Sleep(100) Wend Func _Stop() If $started = true Then $started = False ConsoleWrite("Stopped script.") Endif EndFunc Func _Click() Local $search = 0 Local $coord = 0 If $Started = False then ;Let's start the script $started = true ;toggles the start While $Started = true $search = PixelSearch(0, 0, 1018, 736, 16776960, 5) If not @error Then ; Woohoo, found pixel/color $Coord = PixelSearch(1, 1, 748, 1024, 0x5D77BE ) If not @error Then MouseClick("left", $coord[0], $coord[1], 1, 0) ;this is one click, on the coord[0], coord[1] ; the mouse is moved instantly ConsoleWrite("Found pixel matching color, X: " & $search[0] & " Y: " & $search[1] & @crlf) EndIf EndIf Wend EndIf EndFunc as i said above it finds the color blue and clicks on it. But as i tested it i found a Huge Bug. Lighting effects the script. For example i ran the script as a aimbot for a flash game called 13 days of hell, i changed the color. When the target is under a lighting source the Script cant find the color i specified. Can anyone Please help me with this. Is there a script like mine out there that solves my problem? Main Problem: Lightning on texture effects the pixel search of the script. example Darker room the texture of a object changes to darker. Is there a solution to my problem????? Link to comment Share on other sites More sharing options...
FreeFry Posted March 18, 2008 Share Posted March 18, 2008 Try increasing the shade-variation parameter, other than that.. hmmm.. Link to comment Share on other sites More sharing options...
Killzone21 Posted March 18, 2008 Author Share Posted March 18, 2008 Try increasing the shade-variation parameter, other than that.. hmmm..THe what??? Am pretty new so idk what that means Please explain. Can someone edit my script so it would solve my problem???? or could someone tell me how to fix my problem Link to comment Share on other sites More sharing options...
BrettF Posted March 18, 2008 Share Posted March 18, 2008 PixelSearch ( left, top, right, bottom, color [, shade-variation] [, step]] )RTFM 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...
Killzone21 Posted March 18, 2008 Author Share Posted March 18, 2008 Ok am pretty new to autoit. I created a pixel search and click script the find the color blue and clicks on it. Here is the code: HotKeySet("{PAUSE}", "_click") HotKeySet("{END}", "_stop") Global $Started = False While 1 Sleep(100) Wend Func _Stop() If $started = true Then $started = False ConsoleWrite("Stopped script.") Endif EndFunc Func _Click() Local $search = 0 Local $coord = 0 If $Started = False then ;Let's start the script $started = true ;toggles the start While $Started = true $search = PixelSearch(0, 0, 1018, 736, 16776960, 5) If not @error Then ; Woohoo, found pixel/color $Coord = PixelSearch(1, 1, 748, 1024, 0x5D77BE ) If not @error Then MouseClick("left", $coord[0], $coord[1], 1, 0) ;this is one click, on the coord[0], coord[1] ; the mouse is moved instantly ConsoleWrite("Found pixel matching color, X: " & $search[0] & " Y: " & $search[1] & @crlf) EndIf EndIf Wend EndIf EndFunc as i said above it finds the color blue and clicks on it. But as i tested it i found a Huge Bug. Lighting effects the script. For example i ran the script as a aimbot for a flash game called 13 days of hell, i changed the color. When the target is under a lighting source the Script cant find the color i specified. Can anyone Please help me with this. Is there a script like mine out there that solves my problem? Main Problem: Lightning on texture effects the pixel search of the script. example Darker room the texture of a object changes to darker. Is there a solution to my problem????? someone suggested this: PixelSearch ( left, top, right, bottom, color [, shade-variation] [, step]] ) But i dont know what that means, or where to put it. Can someone edit my script and put the above code into my script, and please give me notes on how to use it and what they do. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 18, 2008 Moderators Share Posted March 18, 2008 http://www.autoitscript.com/forum/index.php?showtopic=66617Keep it to one post on the subject or they'll all be removed. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Killzone21 Posted March 19, 2008 Author Share Posted March 19, 2008 Ok my project is due tommorw, creating a aimbot demo for the most complicated problem ever. Creating pixel search programs is easy, but when creating for a game that is effected by lightning it is a problem. Here is my simple script so far: HotKeySet("{PAUSE}", "_click") HotKeySet("{END}", "_stop") Global $Started = False While 1 Sleep(100) Wend Func _Stop() If $started = true Then $started = False ConsoleWrite("Stopped script.") Endif EndFunc Func _Click() Local $search = 0 Local $coord = 0 If $Started = False then ;Let's start the script $started = true ;toggles the start While $Started = true $search = PixelSearch(0, 0, 1018, 736, 16776960, 5) If not @error Then ; Woohoo, found pixel/color $Coord = PixelSearch(1, 1, 748, 1024, 0x5D77BE ) If not @error Then MouseClick("left", $coord[0], $coord[1], 1, 0) ;this is one click, on the coord[0], coord[1] ; the mouse is moved instantly ConsoleWrite("Found pixel matching color, X: " & $search[0] & " Y: " & $search[1] & @crlf) EndIf EndIf Wend EndIf EndFunc Ok i read some forums and found: PixelSearch ( left, top, right, bottom, color [, shade-variation] [, step]] ) But i dont know Where to put it in the script. MAIN: CAN someone edit my script and include the above line into my script so it could find different shades of blue, dark blue, light blue, normal blue, etc... PLEASE I REALLY NEED THIS! once i create this i could finally create a reverse engine that blocks this, for my upcoming Half life 2 mod, paintball. So please anyone PLease help. Please. Am begging beacuse the source code is due tommor for my team, and i still didnt find what i needed Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 19, 2008 Moderators Share Posted March 19, 2008 Ok my project is due tommorw, creating a aimbot demo for the most complicated problem ever. Creating pixel search programs is easy, but when creating for a game that is effected by lightning it is a problem. Here is my simple script so far: HotKeySet("{PAUSE}", "_click") HotKeySet("{END}", "_stop") Global $Started = False While 1 Sleep(100) Wend Func _Stop() If $started = true Then $started = False ConsoleWrite("Stopped script.") Endif EndFunc Func _Click() Local $search = 0 Local $coord = 0 If $Started = False then ;Let's start the script $started = true ;toggles the start While $Started = true $search = PixelSearch(0, 0, 1018, 736, 16776960, 5) If not @error Then ; Woohoo, found pixel/color $Coord = PixelSearch(1, 1, 748, 1024, 0x5D77BE ) If not @error Then MouseClick("left", $coord[0], $coord[1], 1, 0) ;this is one click, on the coord[0], coord[1] ; the mouse is moved instantly ConsoleWrite("Found pixel matching color, X: " & $search[0] & " Y: " & $search[1] & @crlf) EndIf EndIf Wend EndIf EndFunc Ok i read some forums and found: PixelSearch ( left, top, right, bottom, color [, shade-variation] [, step]] ) But i dont know Where to put it in the script. MAIN: CAN someone edit my script and include the above line into my script so it could find different shades of blue, dark blue, light blue, normal blue, etc... PLEASE I REALLY NEED THIS! once i create this i could finally create a reverse engine that blocks this, for my upcoming Half life 2 mod, paintball. So please anyone PLease help. Please. Am begging beacuse the source code is due tommor for my team, and i still didnt find what i neededI've told you to quit double posting the same topic... do it again and you'll enjoy a little vacation. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. 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