Jump to content
Sign in to follow this  

Making Action based on .WAV sound played

Recommended Posts



I've been working on a little script thats been killing me, and I need some help. I'm trying to tell windows that when this AVI file runs, to click a button (In this instance the F5 Button). The program should loop and wait until it fills the "Audio 1" control with 1 and then push F5. It seems to be constantly pushing F5 even if the audio doesn't play. I'm thinking I may have to change the IsVisible to something else, but I'm not sure what.


Global $tablename = "Connected to"


While WinExists($tablename)

$Audio1 = ControlCommand($tablename, "", "C:\Program Files\Program112\snd\Fold_(male).wav", "IsVisible", "");

if $Audio1 = 1 Then




Eventually, I want several variables with several different keystrokes involved. This is just the beginning, once I get past this hurdle, I have more work to do :whistle:

Thanks in advance!

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.