Page 1 of 1

Text expander and ,dd: adding script....

Posted: Oct 6th, ’19, 09:24
by newkeyer
Hello and greetings to all, my newbie post... 8-)

While playing with newly installed Fastkeys 4.22 (suprising...) I tried adding a small script to ,dd key in text expander.

Purpose: Generating date for next (!) day:

Code: Select all

Morgen = %A_Now%
EnvAdd, Morgen, 1, Days
FormatTime, Morgen, %Morgen%, dd.MM.yyyy
Send, %Morgen%
It is working if added an own entry with type 'Command'.

But how to add such a little script to ,dd popup? Type is set to 'Send', so script isn't be executed:

Code: Select all

%A_ShortDate%
/Uhrzeit: %A_Time%
/Heute ist %A_DDDD%
/%A_DDDD%, %A_DD%. %A_MMMM% %A_YYYY%Morgen = %A_Now%
/EnvAdd, Morgen, 1, Days
FormatTime, Morgen, %Morgen%, dd.MM.yyyy
Send, %Morgen%
thank you and best regards!

Re: Text expander and ,dd: adding script....

Posted: Oct 6th, ’19, 17:58
by Marko
Multiple substitutes are only available in Send mode. Use Insert command code macro to add your script.

Re: Text expander and ,dd: adding script....

Posted: Oct 6th, ’19, 18:43
by newkeyer
So it is NOT possible to add shown little script date+1 to ,dd in text expander?
thank you and best regards.

Re: Text expander and ,dd: adding script....

Posted: Oct 6th, ’19, 20:45
by Marko
Of course it is - as said, use Insert command code macro.

Re: Text expander and ,dd: adding script....

Posted: Oct 7th, ’19, 06:51
by newkeyer
Hello,
indeed, it is working, thanks!

Image