Jump to content
Sign in to follow this  
pickle5

Pixel Search again..

Recommended Posts

pickle5

Is there a way that you can make the mouse move or click on the spot where you found the pixel?

Share this post


Link to post
Share on other sites
Paulie

Is there a way that you can make the mouse move or click on the spot where you found the pixel?

$Search = PixelSearch(YOUR, PARAMETERS, GO, HERE, COLOR)
If Not @error and IsArray($Search) then MouseClick("Left", $Search[0],$Search[1])

Share this post


Link to post
Share on other sites
pickle5

I'm not sure if this is working because my mouse doesnt move to the colour that I have choosen.

Ive tried using "0xC3601D" that colour which is orange but it doesnt go to there.

Share this post


Link to post
Share on other sites
2words4uready

I'm not sure if this is working because my mouse doesnt move to the colour that I have choosen.

Ive tried using "0xC3601D" that colour which is orange but it doesnt go to there.

try

$Search = PixelSearch(0, 0, @desktopwidth, @desktopheight, COLOR)

If Not @error and IsArray($Search) then MouseClick("Left", $Search[0],$Search[1])

Edited by 2words4uready

READ BEFORE POSTINGMy UDF'sMessagesYou say plz because its shorter than please. I say no because its shorter than yes.Join My Website

Share this post


Link to post
Share on other sites
AdamusTorK

and any chanche to find a pixel on a bitmap (not actually on the screen), saved, or not saved or on a hidden window?


[quote name='PsaltyDS']so what is your ilegitimate purpose here?[/quote]

Share this post


Link to post
Share on other sites
pickle5

and any chanche to find a pixel on a bitmap (not actually on the screen), saved, or not saved or on a hidden window?

Nope I dont think so.

Share this post


Link to post
Share on other sites
pickle5

Thanks. It actually worked. :P

Share this post


Link to post
Share on other sites
AdamusTorK

Nope I dont think so.

Actually having fun with a script that moves the mouse as I'm moving a LED front of the webcam (notebook-built-in), but I dont want to have the full webcamwindow to cover the full screen, and if I use small resolution then there are problem with the coordination.

Any idea to use pixelsearch out of the desktop area or on specified app? ;(

Edited by AdamusTorK

[quote name='PsaltyDS']so what is your ilegitimate purpose here?[/quote]

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  

×