Jump to content

Script Help (pixel search)


gotdank
 Share

Recommended Posts

ok im trying to make a script to detect a specific shade of yellow in a pixel range, and when it is detected have the program play a sound to alert me

this is what i have gotten from the help file, but it doesnt work.. any suggestions?

$i = 0
While $i <= 10
    $coord = PixelSearch( 360, 750, 360, 750, 0xf9f76e, 10 )
        If Not @error Then
            SoundPlay(@WindowsDir & "\media\tada.wav",1)
EndIf
WEnd
Link to comment
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
 Share

  • Recently Browsing   0 members

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