trung Posted August 20, 2006 Share Posted August 20, 2006 sorrie for asking more about games guys but this is the hardest thign i ever hav to do i can make a bot no prob with pixel and stuff but the monsters name and health bar doesnt appear intil my mouse is over the monster wut do u think i should do i cant search pixel for the monster and click cuz the pixel is its bar Link to comment Share on other sites More sharing options...
Paulie Posted August 20, 2006 Share Posted August 20, 2006 sorrie for asking more about games guys but this is the hardest thign i ever hav to doi can make a bot no prob with pixel and stuff but the monsters name and health bar doesnt appear intil my mouse is over the monsterwut do u think i should do i cant search pixel for the monster and click cuz the pixel is its barone sugestion I need to make for you, is to, in the future title your topics something remotley related to the question, so when people search and potentially have the same question as you, they caan all be answered at once, instead of wasting banwidth by posting multiple threads with the same contentNow, what game is this by chance?and maybe having you mouse move in increments across the screen untill it finds a monster? Link to comment Share on other sites More sharing options...
trung Posted August 20, 2006 Author Share Posted August 20, 2006 the game is supreme destiny and how do u make the mouse conttinue to move random places? Link to comment Share on other sites More sharing options...
Confuzzled Posted August 20, 2006 Share Posted August 20, 2006 The help file may assist. Try MouseMove and Random as the items to look for. Are you sure you want to make random moves? Wouldn't it be far more logical to systematically scan the entire screen in a logical fashion to locate the monsters? Link to comment Share on other sites More sharing options...
Examiner Posted August 20, 2006 Share Posted August 20, 2006 did you try a search for "supreme destiny" ( its in the top right corner ) 8) Link to comment Share on other sites More sharing options...
trung Posted August 20, 2006 Author Share Posted August 20, 2006 yea i searched and confuzzled ur right shouldnt jus scan the whole screen lol Link to comment Share on other sites More sharing options...
trung Posted August 20, 2006 Author Share Posted August 20, 2006 can u guys help me start it off imean how to make the mouse move around a part of the screen like setting up the cords so the mouse knoes where to start and stop and if a certain pixel pops up it would click thknx Link to comment Share on other sites More sharing options...
Paulie Posted August 20, 2006 Share Posted August 20, 2006 (edited) can u guys help me start it off imean how to make the mouse move around a part of the screen like setting up the cords so the mouse knoes where to start and stop and if a certain pixel pops up it would click thknxFunc MouseInRegion($R_x1=0, $R_y1=0, $R_x2=@DesktopWidth, $R_y2=@DesktopHeight) For $reg1X = $R_x1 to $R_x2 step 3 For $reg1Y = $R_y1 to $R_y2 step 3 MouseMove($reg1X, $reg1Y, 1) Next Next EndFunc This moves mouse to every 3 pixels within the defined coordinates which by default are the whole screen EDIT: coordinates are defined like 'pixelsearch' Edited August 20, 2006 by Paulie Link to comment Share on other sites More sharing options...
trung Posted August 20, 2006 Author Share Posted August 20, 2006 kool lemme test thnkx Link to comment Share on other sites More sharing options...
trung Posted August 21, 2006 Author Share Posted August 21, 2006 am i pose to add my script to that or sumthing cuz all that does is closes it self after 1 second can u tell me wut that does so i can continue Link to comment Share on other sites More sharing options...
Paulie Posted August 21, 2006 Share Posted August 21, 2006 am i pose to add my script to that or sumthing cuz all that does is closes it self after 1 second can u tell me wut that does so i can continuemy script is a UDF that you must call for it to work, go like this MoveInRegion(400,400, 600,600);coordinates are defined like pixelsearch Func MoveInRegion($R_x1=0, $R_y1=0, $R_x2=@DesktopWidth, $R_y2=@DesktopHeight) For $reg1X = $R_x1 to $R_x2 step 3 For $reg1Y = $R_y1 to $R_y2 step 3 MouseMove($reg1X, $reg1Y, 1) Next Next EndFunc Link to comment Share on other sites More sharing options...
trung Posted August 21, 2006 Author Share Posted August 21, 2006 ooOOooOOO nice!!!! i get it now imma see if i change the cords around it only go in a line Link to comment Share on other sites More sharing options...
Paulie Posted August 21, 2006 Share Posted August 21, 2006 ooOOooOOO nice!!!! i get it now imma see if i change the cords around it only go in a lineno it just SEEMs like it goes in a line, make the call like this, and you'l see it moves, it just only goes over 3 pixels at a time MoveInRegion() Link to comment Share on other sites More sharing options...
trung Posted August 21, 2006 Author Share Posted August 21, 2006 any way to make it slower? and if i needed for it to stop if a pixel shows up i would make a whole new func rt? Link to comment Share on other sites More sharing options...
Paulie Posted August 21, 2006 Share Posted August 21, 2006 any way to make it slower?and if i needed for it to stop if a pixel shows up i would make a whole new func rt?there are several ways to slow it down, but if you put your pixelsearch in that loop (Right under the 'MouseMove' line, then it moves the mouseSearchesthen movesthen searchesrepeditivley Link to comment Share on other sites More sharing options...
trung Posted August 21, 2006 Author Share Posted August 21, 2006 theres no way to make it where if pixel shows up it will click thou im confused now Link to comment Share on other sites More sharing options...
Paulie Posted August 21, 2006 Share Posted August 21, 2006 theres no way to make it where if pixel shows up it will click thou im confused now lol, okay let me give you a full example MoveInRegion();coordinates are defined like pixelsearch Func MoveInRegion($R_x1=0, $R_y1=0, $R_x2=@DesktopWidth, $R_y2=@DesktopHeight) For $reg1X = $R_x1 to $R_x2 step 3 For $reg1Y = $R_y1 to $R_y2 step 3 MouseMove($reg1X, $reg1Y, 1) $search = PixelSearch(0,0,@DesktopWidth,@DesktopHeight, *Your color*) If IsArray($search) and not @error Then Found_it($search[0],$search[1]) Endif Next Next EndFunc Func Found_It($f_x,$f_y) ;Do whatever you want with monster cordinates here EndFunc This will move the mouse around the whole desktop, and every three pixels it preforms a pixelsearch for whatever color If it's there it takes you to the found_it function in which you can have it click or say "Theres a monster" or whatever Link to comment Share on other sites More sharing options...
trung Posted August 21, 2006 Author Share Posted August 21, 2006 (edited) thnkx man still one prob it only going down my left side of screen odd even if it does search the entire screen the mouse only goes down the left side meaning the blood of the monsters on the other sides dunt show up cuz the mosue on this side i think my cords are rong wut program do u use to find ur cords Edited August 21, 2006 by trung Link to comment Share on other sites More sharing options...
trung Posted August 21, 2006 Author Share Posted August 21, 2006 (edited) hey i found a better idea HotKeySet ("{ESC}", "quitme") ; command line param: beep (0 = off, 1 = on) Global $MakeNoise = 0 If $CmdLine[0] = 0 Then $MakeNoise = 0 ElseIf $CmdLine[1] = 1 Then $MakeNoise = 1 EndIf Global Const $PI = 3.1415926535897932384626433832795 Global $Width = @DesktopWidth, $Height = @DesktopHeight, $MidX = $Width/2, $MidY = $Height/2 Global $Radius = 5 Global $Step = $PI/6 ToolTip ("Mouse Mover!!", $MidX, $MidY) While 1 Do For $angle = 0 To 2*$PI Step $Step $Radius += 5 MouseMove ($MidX - (Cos ($angle) * $Radius), $MidY - (Sin ($angle) * $Radius), 0) If $MakeNoise = 1 Then Beep ($Radius*5, 2) EndIf Next Until $Radius >= $MidY Do For $angle = 0 To 2*$PI Step $Step $Radius -= 5 MouseMove ($MidX - (Cos ($angle) * $Radius), $MidY - (Sin ($angle) * $Radius), 0) If $MakeNoise = 1 Then Beep ($Radius*5, 2) EndIf Next Until $Radius <= 5 WEnd Func quitme() Exit EndFunc if i used this it would b easier rt? but its moving so fast and i hav no clue how to add the pixel search and click nvm foudn the speed part now to add the pixel and click Edited August 21, 2006 by trung Link to comment Share on other sites More sharing options...
Paulie Posted August 21, 2006 Share Posted August 21, 2006 (edited) wut program do u use to find ur cordsI got 2 One is the Autoit Window info in the start menu the other is this one While 1 $pos = mouseGetPos() ToolTip($Pos[0]&", "&$Pos[1], $Pos[0]+10, $pos[1]+10) Wend oÝ÷ Ø òÁ¬ç(uè j÷yú+{ +çpØfz«z+&ÉÊ{Ø^rX«¢+Ø)M±À ÄÀÀÀ¤()5½Ù%¹I¥½¸ ¤í½½É¥¹ÑÌÉ¥¹±¥Á¥á±ÍÉ (()Õ¹5½Ù%¹I¥½¸ ÀÌØíI}àÄôÀ°ÀÌØíI}äÄôÀ°ÀÌØíI}àÈõÍѽÁ]¥Ñ °ÀÌØíI}äÈõÍѽÁ!¥¡Ð¤)½ÈÀÌØíÉÅ`ôÀÌØíI}àÄѼÀÌØíI}àÈÍÑÀÌ(%½ÈÀÌØíÉÅdôÀÌØíI}äÄѼÀÌØíI}äÈÍÑÀÌ($%5½ÕÍ5½Ù ÀÌØíÉÅ`°ÀÌØíÉÅd°Ä¤($$ÀÌØíÍÉ ôA¥á±MÉ À°À±ÍѽÁ]¥Ñ ±ÍѽÁ!¥¡Ð°ÅÕ½Ðí ½±½ÈÅÕ½Ðì°ÌÀ¤($%%%ÍÉÉä ÀÌØíÍÉ ¤Q¡¸($$%½Õ¹}¥Ð ÀÌØíÍÉ¡lÁt°ÀÌØíÍÉ¡lÅt¤($%¹¥(%9áÐ)9áÐ)¹Õ¹()Õ¹½Õ¹}%Ð ÀÌØí}à°ÀÌØí}ä¤(5½Õͱ¥¬ ÅÕ½Ðí±ÐÅÕ½Ðì°ÀÌØí}à°ÀÌØí}ä¤íQ¡¥Ì¥Ì±°$¡¹)¹Õ¹( Edited August 21, 2006 by Paulie 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