Jump to content

Recommended Posts

Posted

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.

Posted

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?

Posted

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

Posted

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.

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
×
×
  • Create New...