Jump to content

Recommended Posts

Posted

I would like to be able to find the x and the y co-ordinates on my computer at a point.

I would like to be able to find out what colour is at that point.

And if that colour is at that point I would like to be able to have a program run automatically if it occurs.

I found out the hex of the colour 0x9FFFFE - but i don't really know how to use this....

In particular, i am wanting to play a music file. any type of file really, just something to get my attention when i am sent a message....

(im not using msn lol) (a message in a particular game i play)

thanks.

Posted (edited)

If PixelGetColor(30,773) = 0x9FFFFE then

; another built-in command, the one indicates play until the sound finishes.

SoundPlay(@WindowsDir & "\media\Windows XP Logon Sound.wav",1)

Endif

This is what I have so far..... When i open up the .au3 file it looks for the colour '0x9FFFFE' at position x30 y773.... and if it finds that it plays the '.wav' file.... My only problem now is... if it doesn't find the colour at that position, the .au3 script just closes....

Is there some way to make it so that the script continually searches until it finds it instead of giving up after 1 try?

Thanks.

Edited by PnutPnut

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
×
×
  • Create New...