happydood Posted March 1, 2007 Share Posted March 1, 2007 Hello, 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. HERE IS CODE: Global $tablename = "Connected to" WinWaitActive($tablename) While WinExists($tablename) $Audio1 = ControlCommand($tablename, "", "C:\Program Files\Program112\snd\Fold_(male).wav", "IsVisible", ""); if $Audio1 = 1 Then Send('{F5}'); EndIf WEnd 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 Thanks in advance! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now