| View previous topic :: View next topic |
| Author |
Message |
vogelap
Joined: 27 Aug 2006 Posts: 6 Location: Cincinnati, Ohio
|
Posted: Fri Mar 19, 2010 7:54 pm Post subject: Send a text string based on day-of-week? |
|
|
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 |
|
 |
garry
Joined: 19 Apr 2005 Posts: 2212 Location: switzerland
|
Posted: Fri Mar 19, 2010 8:01 pm Post subject: |
|
|
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 |
|
 |
vogelap
Joined: 27 Aug 2006 Posts: 6 Location: Cincinnati, Ohio
|
Posted: Fri Mar 19, 2010 8:03 pm Post subject: |
|
|
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 |
|
 |
|