AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Where is the problem in this script ...

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
padarrju



Joined: 23 Jan 2006
Posts: 37
Location: Vadodara - Gujarat (INDIA)

PostPosted: Tue Jul 03, 2007 3:52 am    Post subject: Where is the problem in this script ... Reply with quote

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
View user's profile Send private message
Guest






PostPosted: Tue Jul 03, 2007 4:40 am    Post subject: Re: Where is the problem in this script ... Reply with quote

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

PostPosted: Tue Jul 03, 2007 4:50 am    Post subject: Re: Where is the problem in this script ... Reply with quote

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


Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group