Sign in to follow this  
Followers 0
lilandywandy

Need a little help please =(

10 posts in this topic

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

Share this post


Link to post
Share on other sites



srry ss wont post

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

heres the pic

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by thatsgreat2345

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#10 ·  Posted (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 by thatsgreat2345

Share this post


Link to post
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
Sign in to follow this  
Followers 0