Jump to content
Sign in to follow this  
Abaddon

Open Sound File

Recommended Posts

Abaddon

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.

Share this post


Link to post
Share on other sites
Abaddon

Thanks a bunch :shocked: 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?

Share this post


Link to post
Share on other sites
SleepyXtreme

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 :shocked:

you're welcome :(

Share this post


Link to post
Share on other sites
Abaddon

I know, that's why I asked if therer was any way to get AM or PM.... You helped me none lol.

Share this post


Link to post
Share on other sites
CySt

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.

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.