 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
padarrju
Joined: 23 Jan 2006 Posts: 37 Location: Vadodara - Gujarat (INDIA)
|
Posted: Tue Jul 03, 2007 3:52 am Post subject: Where is the problem in this script ... |
|
|
Dear All,
I have developed one small script just to play a prayer everyday based on the day of the week. Somehow today it is "Tuesday" but prayer z.mp3 doesn't play. What could be the possible reason ?
Any help will be appreciated.
The Script is given below :
FormatTime, ddd,, ddd
MsgBox,DDD : %ddd%
if (ddd = "Mon")
{
Soundplay,C:\Users\padarrju\My Documents\Prem Se Bas Do Ghadi.mp3
}
else if (ddd = "Tue")
{
msgbox Tuesday Running 1 ...
SoundPlay,C:\Users\padarrju\My Documents\z.mp3 ; not playing ...
msgbox Tuesday Running 2 ...
}
else
{
Soundplay,C:\Users\padarrju\My Documents\kabhi pyase ko pani.mp3
}
exitapp
esc::exitapp
Thanks well in advance !
Regards,
Raju C Padaria |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Jul 03, 2007 4:40 am Post subject: Re: Where is the problem in this script ... |
|
|
| padarrju wrote: | Dear All,
I have developed one small script just to play a prayer everyday based on the day of the week. Somehow today it is "Tuesday" but prayer z.mp3 doesn't play. What could be the possible reason ?
Any help will be appreciated.
The Script is given below :
FormatTime, ddd,, ddd
MsgBox,DDD : %ddd%
if (ddd = "Mon")
{
Soundplay,C:\Users\padarrju\My Documents\Prem Se Bas Do Ghadi.mp3
}
else if (ddd = "Tue")
{
msgbox Tuesday Running 1 ...
SoundPlay,C:\Users\padarrju\My Documents\z.mp3 ; not playing ...
msgbox Tuesday Running 2 ...
}
else
{
Soundplay,C:\Users\padarrju\My Documents\kabhi pyase ko pani.mp3
}
exitapp
esc::exitapp
Thanks well in advance !
Regards,
Raju C Padaria |
Dear All,
My problem is resolved. I retype the entire line & it started working now.
Thanks all once again.
Regards,
Raju C Padaria |
|
| Back to top |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 6264
|
Posted: Tue Jul 03, 2007 4:50 am Post subject: Re: Where is the problem in this script ... |
|
|
| Anonymous wrote: | | My problem is resolved. I retype the entire line & it started working now. |
Nice to know it. Just wanted to mention that I would have used WDay in FormatTime parameter, Like:
| Code: | FormatTime, WDay,, WDay
IfEqual,WDay,1 ; Sunday
IfEqual,WDay,2, Soundplay, C:\Users\padarrju\My Documents\Prem Se Bas Do Ghadi.mp3
IfEqual,WDay,3, SoundPlay, C:\Users\padarrju\My Documents\z.mp3
IfEqual,WDay,4 ; Wednesday
IfEqual,WDay,5 ; Thursday
IfEqual,WDay,6 ; Friday
IfEqual,WDay,7 ; Saturday |
 |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|