lilandywandy Posted October 23, 2005 Share Posted October 23, 2005 if anyone has free time, can they make me a code which basically makes my mouse right click at j87h23 non stop? (and the coords of j87h23 are random, so i know it will probably involve pixelcolorfind) so basically it will just click at that color; and when that colors not on screen it just waits till it is.. as u see in the ss, all i want is the mouse to right click those monsters life bar Link to comment Share on other sites More sharing options...
lilandywandy Posted October 23, 2005 Author Share Posted October 23, 2005 srry ss wont post Link to comment Share on other sites More sharing options...
markusss Posted October 23, 2005 Share Posted October 23, 2005 Hey! I don't know what you mean by "j87h23"! is that a color and you want to click the pixel that has that color or is that a specific pixel like "268,161"?? Please make it more specific! BTW add the SS as an attachment, so we know what you mean.... Felix N. (tdlrali) Link to comment Share on other sites More sharing options...
lilandywandy Posted October 24, 2005 Author Share Posted October 24, 2005 heres the pic Link to comment Share on other sites More sharing options...
lilandywandy Posted October 24, 2005 Author Share Posted October 24, 2005 that is just a made up color, i just want the mouse to click that redish color(life bar) , and the coords, there can be more then 1 at a time on screen, and they are totally random, but as long as my mouse keeps clicking them its good Link to comment Share on other sites More sharing options...
AutoItKing Posted October 24, 2005 Share Posted October 24, 2005 You could just get the coordinates of the LifeBar and do this: While 1 MouseClick("RIGHT",x,y) WEnd Just plug in the coordinates and your done! http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script] Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted October 24, 2005 Share Posted October 24, 2005 (edited) dude it would have to go through color cuz he doesnt want it to click if its not there just get the color of the red part and then u can just make a rectangle and make it only search taht area for the color Global $Paused HotKeySet("{f2}", "TogglePause"); pauses prog HotKeySet("{ESC}", "Terminate"); closes prog HotKeySet("{f1}", "ShowMessage"); starts prog While 1 sleep(100) WEnd Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc Func ShowMessage() While 1 $Coord = PixelSearch ( topleftcoord, topleftcoord, bottomrightcoord, bottomrightcoord, color, 0, 0) If Not @error Then MouseClick ( "Left" , $Coord[0], $Coord[1], 1 , 0 ) EndIf WEnd Endfunc Edited October 24, 2005 by thatsgreat2345 Link to comment Share on other sites More sharing options...
AutoItKing Posted October 24, 2005 Share Posted October 24, 2005 (edited) That might work Edited October 24, 2005 by AutoItKing http://www.autoitking.co.nr Site is DOWN | My deviantART | No Topic Topic - Don't do it!-------------------- UDF's/Scripts:AutoIt: [BenEditor 3.6] [_ShutDown()]PHP: [CommentScript]Web Based AutoIt: [MemStats] [HTML to AU3] [User LogIn and SignUp script] Link to comment Share on other sites More sharing options...
lilandywandy Posted October 25, 2005 Author Share Posted October 25, 2005 Global $Paused HotKeySet("{f12}", "TogglePause"); pauses prog HotKeySet("{ESC}", "Terminate"); closes prog HotKeySet("{f11}", "ShowMessage"); starts prog While 1 sleep(100) WEnd Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc Func ShowMessage() While 1 $Coord = PixelSearch ( 97,76, 1036,86, 1041,700, 115,656, xbd0000, 0, 0) If Not @error Then MouseClick ( "right" , $Coord[0], $Coord[1], 1 , 0 ) EndIf WEnd Endfunc =( says theres an error with $Coord = PixelSearch ( 97,76, 1036,86, 1041,700, 115,656, bd0000, 0, 0) bd0000 is the actual color of the life bar Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted October 26, 2005 Share Posted October 26, 2005 (edited) u only need the top left corner of the it and the bottom right so it would sumtin like $Coord = PixelSearch ( 97, 76, 1041,700, xbd0000, 0, 0) like that so just the top left coord and bottom right only 2 coords | V right there this would be 97, 76 ------------------------------------------------------------------| |-----------------------------------------------------------------| |---------------------------------------------------------------- | |---------------------------------------------------------------- | |-----------------------------------------------------------------| |-----------------------------------------------------------------| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ^ right there this would be 1041,700 yes my rectangle is amazing Edited October 26, 2005 by thatsgreat2345 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