Sign in to follow this  
Followers 0
danzar

pixelsearch help

2 posts in this topic

Hi i am new here but love the program. My wheels have been turning sinse i found it.

I am writing a scipt for a macro for a game and i want to for it to seach out a color on the screen but i cant get the macro to find it unless i move the mouse myself then when i mouse over it it finds it. Is this how this function is suppost to work or? If it is how its suppose to work what another way for me to code to not have to.

thanks danzar

CODE
$mob = PixelSearch(0,0,800,600,0x4B0608,1,1)

if not @error Then

MouseClick("left", $mob[0],$mob[1],2)

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

My wheels have been turning sinse i found it.

LoL

You have given us really little information to work with, specify more if you need help. :P

Btw. that's one huge area your are pixel searching, try to reduce the area you are pixel searching :|

I usually search pixel around the mouse, because that is really fast and effective, I don't know if it would be useful in whatever you are trying to do though.. :/

And no, PixelSearch() does search for the pixel that is already on your screen.

Edited by FreeFry

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