put date into text

Discuss RoboTask here
Post Reply
reboot619
Posts: 4
Joined: Sat Feb 01, 2020 6:37 pm

put date into text

Post by reboot619 »

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
Oleg
Site Admin
Posts: 3230
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: put date into text

Post by Oleg »

Now you can enter the date into the current input field by pressing the hotkey
Look at the task below. Press CTRL+ALT+D, and the task will enter the date into your text
Save the task text to a file and use the Task->Import menu to import the task into RoboTask.
You can also simply copy the task text and paste it into the task list.
Don't forget to enable the task after importing it.

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"

Oleg Yershov
Post Reply