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

Discussion, questions and support.
Post Reply
newkeyer
Posts: 3
Joined: Oct 6th, ’19, 09:12

Post by newkeyer » Oct 6th, ’19, 09:24

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!
User avatar
Marko
Posts: 1718
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Oct 6th, ’19, 17:58

Multiple substitutes are only available in Send mode. Use Insert command code macro to add your script.
newkeyer
Posts: 3
Joined: Oct 6th, ’19, 09:12

Post by newkeyer » Oct 6th, ’19, 18:43

So it is NOT possible to add shown little script date+1 to ,dd in text expander?
thank you and best regards.
User avatar
Marko
Posts: 1718
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Oct 6th, ’19, 20:45

Of course it is - as said, use Insert command code macro.
newkeyer
Posts: 3
Joined: Oct 6th, ’19, 09:12

Post by newkeyer » Oct 7th, ’19, 06:51

Hello,
indeed, it is working, thanks!

Image
Post Reply