Discussion, questions and support.
-
Archivist
- Posts: 36
- Joined: Sep 21st, ’17, 18:06
Post
by Archivist » Oct 4th, ’17, 20:01
I'm trying to create a Text Expander that includes both commands (date + N days) and plain text.
Code: Select all
Date:=A_Now
Date+=+8, Days
FormatTime, Date, %Date%, DDDD dd/MM/yyyy
Send, [wo#%INPUT_WORK_ORDER%] Ready for User Testing on %DATE%{Enter}
Send, The above work has been complete and is available for testing in{Enter}
1. Once I change the type to COMMAND, I can't get the INPUT statement to work;
2. Once I change the type to COMMAND, I have to prefix output lines w/ Send (or they fail). However, I can't figure out how to include formatting.
-
Marko
- Posts: 1718
- Joined: Mar 2nd, ’13, 21:02
Post
by Marko » Oct 4th, ’17, 20:41
One way is to use Insert Command Code macro. Due to a small glitch, please download FastKeys again and re-install. Then do the following:
Type: Send
Code: Select all
[wo{#}%INPUT_WORK_ORDER%] Ready for User Testing on %CODE_Date%.
The above work has been complete and is available for testing in
Use Insert Command Code macro to insert the %CODE_Date%
Code: Select all
Date:=A_Now
Date+=+8, Days
FormatTime, Date, %Date%, dd/MM/yyyy
Send, %Date%