Jump to content

clean for me


 Share

Recommended Posts

$Coord = PixelSearch(118, 118, 139, 151, 0x4E94FC, 5)

If Not @error Then

MouseDown("left")

endif

$Coord = PixelSearch(117, 117, 139, 151, 0xBC0000, 5)

If Not @error Then

MouseUp("left")

hey guys im trying to get my mouse to click wenever it sees the blue but wen the red comes up it realeast. wen the blue is back it clicks agin and so on

any idea?

mine kinda reacts slow

Link to comment
Share on other sites

not at this long myself, but the variable is the $... that you declare as something

this .... $Coord = PixelSearch(118, 118, 139, 151, 0x4E94FC, 5) .... is declaring $Coord

This is usually done so that you can alter the variable later and the code will understand what you are refering to.

According to his post, you sould drop the variable.

ie,

PixelSearch(118, 118, 139, 151, 0x4E94FC, 5)

will do the same thing unless other parts of your code are setup for $Coord

ex of variable

$x = 1

$x = $x + 1 . . . . now we have made $x = 2

Edited by Hatcheda
Link to comment
Share on other sites

$Coord = PixelSearch(118, 118, 139, 151, 0x4E94FC, 5)

If Not @error Then

MouseDown("left")

endif

$Coord = PixelSearch(117, 117, 139, 151, 0xBC0000, 5)

If Not @error Then

MouseUp("left")

hey guys im trying to get my mouse to click wenever it sees the blue but wen the red comes up it realeast. wen the blue is back it clicks agin and so on

any idea?

mine kinda reacts slow

If you are checking a specific spot to see what color the pixel is, use pixelgetcolor. pixelsearch searches the entire specfied area for a color, and then returns the coordinates of the color. if you know where the colors are going to be, and just want to know which one it is at that time, use pixelgetcolor
Link to comment
Share on other sites

well ok lemme b more specific. im making a bot for a game called 2moon. its for fishing. the one on here doesnt work so i made my own. we have to hold down the mouse wen theres a blue bar and we let go wen it turns red then click agin wen its blue. can sumone make a quick example for me. even if its a whole enw one

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...