put date into text
Posted: Sat Aug 30, 2025 10:43 am
I want to be able to type yyy into any text that I'm writing and have robotask put today's date as yyyy-mm-dd
Code: Select all
;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|694629558
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DisableOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task869"
Hide=INTEGER|0
ID=INTEGER|122602457
LogOnAsUser=INTEGER|1
Name=STRING|"Insert date"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RestrictRESTAPIAccess=INTEGER|0
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
StepPause=INTEGER|0
ToLog=INTEGER|3
UnicodeFormat=INTEGER|1
WriteGeneralLog=INTEGER|0
[Actions]
Action1=FOLDER
[Actions\Action1]
ActionID=STRING|"A_GENERAL_SENDKEYS"
Enabled=INTEGER|-1
Name=STRING|"Send keys to active window"
Params=FOLDER
[Actions\Action1\Params]
currentwindow=STRING|"1"
fixedwindow=STRING|"1"
keylayout=STRING|"0"
keys=STRING|"{Year}-{MonthNo}-{Day}"
pause=STRING|"20"
release=STRING|"1"
sendkind=STRING|"0"
wincaption=STRING|"Notepad"
[Events]
Event1=FOLDER
[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_GENERAL_HOTKEY"
Name=STRING|"Ctrl+Alt+D"
Params=FOLDER
UniqueID=INTEGER|598052594
[Events\Event1\Params]
hotkey=STRING|"49220"