Abaddon Posted April 14, 2007 Share Posted April 14, 2007 Is there a way to open a sound file without using SoundPlay? I'm making an alarm clock and I want it to open with the user's default media player. Link to comment Share on other sites More sharing options...
Helge Posted April 14, 2007 Share Posted April 14, 2007 ShellExecute Link to comment Share on other sites More sharing options...
Abaddon Posted April 14, 2007 Author Share Posted April 14, 2007 Thanks a bunch one more question though, I know how to get the time: _NowTime() with the date.au3. But it doesn't return it as AM or PM. Any way to get the time with Am or PM? Link to comment Share on other sites More sharing options...
SleepyXtreme Posted April 14, 2007 Share Posted April 14, 2007 Don't forget to read the comments in the auto it help file: #Include <Date.au3> _NowTime ( [$sType] ) $sType 4 = Display a time using the 24-hour format (hh:mm). Note: 24 hour time doesn't have am or pm you're welcome Link to comment Share on other sites More sharing options...
Abaddon Posted April 16, 2007 Author Share Posted April 16, 2007 I know, that's why I asked if therer was any way to get AM or PM.... You helped me none lol. Link to comment Share on other sites More sharing options...
CySt Posted April 16, 2007 Share Posted April 16, 2007 well, he did help you...he said read the comments in the help file, and told you that a 24 hour clock does not have AM or PM. If you look at the help file it will tell you that 3 (default) will display the time you have on your computer. So _NowTime() should include the AM or PM if you are using that format on your computer. 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