Jump to content
Sign in to follow this  

newbie help with pixels

Recommended Posts

Hi I am trying to get a mouse to move to a certain colored pixel and left click once but im not particularly bright and dont really get how to implement this.

Im pretty sure that it involves the pixelsearch function but tbh I just dont understand how to get it working. Ive had a look at some of the other scripts available and am pretty sure i could plagiarise someone elses work but i wouldnt understand why i had done this, so if someone one could explain in terms that your 80 year old granny could understand i would be most grateful.

Share this post

Link to post
Share on other sites

$search = PixelSearch (0, 0, @DesktopWidth, @DesktopHeight, 0x00FF00)
If @error Then
    MsgBox (48, "Error", "Pixel not found.")
    MouseClick ("left", $search[0], $search[1])

chane 0x00FF00 to the hex value of the color you want to find.

Edited by theguy0000

The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

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  

  • Create New...