Jump to content
Sign in to follow this  
Guest teh_hackerer

Click when color change?

Recommended Posts

Guest teh_hackerer

I've been trying to find out a simple script but cant seem to find anything to help me on it, so I turned to the forums. I'm also a n00b at scripting.

I'm trying to make a simple script, something like this:

Mouseclick when the middle of the screens pixel (pixel 800x600) turns red (on a 1600x1200 res)

Heres what i got in my screen recorder progee:

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<

Title: WindowTitle

Class: RealSpace2

Size: X: 0 Y: 0 W: 1600 H: 1200

>>>>>>>>>>> Mouse Details <<<<<<<<<<<

Screen: X: 800 Y: 600

Cursor ID: 2

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<

RGB: Hex: 0xFF0000 Dec: 16711680

Can anyone help me on this? :)

Share this post

Link to post
Share on other sites


While 1
   $iColor = PixelGetColor(800, 600)
   If $iColor = 0xff0000 Then MouseClick('left')


(Read the FINE manual)

Share this post

Link to post
Share on other sites
Guest teh_hackerer

Thank you, it will help very much. ^^

Sorry about not reading the fine manual, but I can't seem to find it. :)

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.