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 

Send a text string based on day-of-week?

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



Joined: 27 Aug 2006
Posts: 6
Location: Cincinnati, Ohio

PostPosted: Fri Mar 19, 2010 7:54 pm    Post subject: Send a text string based on day-of-week? Reply with quote

I've got a text string attached to CTRL-SHIFT-3 that I would like to change based on the day of the week...

If today is Friday, send string "A". If today is NOT Friday, send string "B".

I'm not sure how to accomplish this in AutoHotkey (I'm no programmer!) and would appreciate any guidance!

Thanks.
_________________
-drew
www.drewvogel.com
Back to top
View user's profile Send private message
garry



Joined: 19 Apr 2005
Posts: 2212
Location: switzerland

PostPosted: Fri Mar 19, 2010 8:01 pm    Post subject: Reply with quote

example (instead of msgbox your command send)
Code:
if A_WDay=6
 msgbox,today is friday`nA
else
  msgbox,today is NOT friday`nB
Back to top
View user's profile Send private message
vogelap



Joined: 27 Aug 2006
Posts: 6
Location: Cincinnati, Ohio

PostPosted: Fri Mar 19, 2010 8:03 pm    Post subject: Reply with quote

That did it! I figured it would be something simple, but wasn't having much luck sorting it out on my own.

Thank you very much for your solution, and the quick reply.
_________________
-drew
www.drewvogel.com
Back to top
View user's profile Send private message
Display posts from previous:   
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