Jump to content

Recommended Posts

Guest teh_hackerer
Posted

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? :)

Posted

Uh?

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

RTFM!

(Read the FINE manual)

Guest teh_hackerer
Posted

Thank you, it will help very much. ^^

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...