RAMMRODD Posted September 5, 2008 Share Posted September 5, 2008 Ok I want to bring up a window that says "would you like to play a sound notifying you that the script works" if yes is clicked I want the script to play the sound then start the script, if not then I want it to just start the script. I have everything done but the sound window part. If - Then in the help file isnt working for me, there was on there somewhere something that has what I'm kinda looking for. It had a window with yes and no buttons and a cancel button. As you pressed yes or no it said what you pressed until you hit cancel which exited. If anyone could name that example thats all I need I believe what I grabbed from the help file MsgBox(4, "Play Sound?", "Play sound when script is started?") <---looks like I want it but then I need an if statement, just not sure how to use the help file in this. $sound = MsgBox(4, "Play Sound?", "Play sound when script is started?") if $sound=6 then SoundPlay("C:\sound.wav",1) else script scriptscript script script script script script something like that but in autoit is what I'm thinking I need, just not sure how to do it. Link to comment Share on other sites More sharing options...
Bert Posted September 5, 2008 Share Posted September 5, 2008 Try this: $sound = MsgBox(4, "Play Sound?", "Play sound when script is started?") if $sound=6 then SoundPlay("C:\WINDOWS\Media\ringin.wav",1) else SoundPlay("C:\WINDOWS\Media\ringout.wav",1) endif The Vollatran project My blog: http://www.vollysinterestingshit.com/ 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