Jump to content
Sign in to follow this  
gotdank

Script Help (pixel search)

Recommended Posts

gotdank

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

Share this post


Link to post
Share on other sites
gotdank

sorry for the double post, i wanted to clarify that it compiles just fine, but it does not play a sound when the color is present

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  

×