Jump to content

Need a little help please =(


Recommended Posts

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

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

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!

B)

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

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 by thatsgreat2345
Link to comment
Share on other sites

That might work B):o:graduated::):D:x

Edited 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

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

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 by thatsgreat2345
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...