ciraco Posted September 12, 2007 Posted September 12, 2007 I am looking to create a bot that will find a specific color on your scree, then click X number of pixels down from the pixel that was found with the color. Could anyone help me?
Paulie Posted September 12, 2007 Posted September 12, 2007 I am looking to create a bot that will find a specific color on your scree, then click X number of pixels down from the pixel that was found with the color.Could anyone help me?RTFM!!Pixelsearch()
ciraco Posted September 12, 2007 Author Posted September 12, 2007 RTFM!! Pixelsearch() Yeah I did a search on the forum and I found a script that does color search, but I dont know the varieables as to how to make it find a specific color and what not Sleep (5000) Send("L") Sleep (1000) MouseClick("left") Sleep (1000) While 1 $coor = PixelSearch( 129, 104, 423, 169, 0x3489e3, 2, 2 ) If @error = 0 Then Opt("SendKeyDownDelay", 300000);will hold Space down for 5 min or until pixelcolor changes ?? Send("{SPACE}") While 1 $coor = PixelSearch( 129, 104, 423, 169, 0x3489e3, 2, 2 ) If @error = 1 Then Opt("SendKeyDownDelay", 5) Send("{SPACE}") ExitLoop eNDiF Wend EndIf Wend
Paulie Posted September 12, 2007 Posted September 12, 2007 Damn me and my generosity... $Color = 0xFF0000;Color to search for (Red) $Offset = 10 ; Clicks 10 pixels lower than the found pixel While 1 $Search = PixelSearch(0,0,@Desktopwidth,@Desktopheight,$Color);Searches whole screen (From (0,0) to (Width,Height)) for color If not @error then MouseClick("Left", $Search[0],$Search[1]+$Offset, 1,0) WEnd
ciraco Posted September 12, 2007 Author Posted September 12, 2007 thats alot, but one more question. How would I make the bot hit the tilde button (`/~)? Like this? Send("`") or Send("~") or Send("{TILDE}") ??
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