;***************************** ;* RoboTask Task file ;* Do not edit in text editor! ;***************************** [Root] ActionAfterRun=INTEGER|0 Actions=FOLDER Automat=INTEGER|0 CatID=INTEGER|10 Comment=STRINGLIST ContinueOnError=INTEGER|0 DoNotStopWhenShutdown=INTEGER|0 ExternalName=STRING|"Task152" Hide=INTEGER|0 ID=INTEGER|113440563 LogOnAsUser=INTEGER|1 Name=STRING|"[DEMO] Retrieve task names" OnErrorTaskID=INTEGER|-1 Priority=INTEGER|3 RunOnClose=INTEGER|0 RunOnStartup=INTEGER|0 ToLog=INTEGER|3 UnicodeFormat=INTEGER|1 WriteGeneralLog=INTEGER|0 [Actions] Action1=FOLDER Action2=FOLDER Action3=FOLDER Action4=FOLDER Action5=FOLDER Action6=FOLDER [Actions\Action1] ActionID=STRING|"A_ROBOTASK_ALERT" Enabled=INTEGER|-1 Name=STRING|"Show Notification" Params=FOLDER [Actions\Action1\Params] defh=STRING|"0" defw=STRING|"0" duration=STRING|"20" height=STRING|"150" icon=STRING|"3" kind=STRING|"0" message=STRING|"This taks retrieves CSV file with information:{eol}- Task ID{eol}- Task Name{eol}{eol}Text sorted by Task Id" position=STRING|"3" title=STRING|"{TaskName}" width=STRING|"400" [Actions\Action2] ActionID=STRING|"A_SCRIPT_VBSCRIPT" Enabled=INTEGER|-1 Name=STRING|"VB Script" Params=FOLDER [Actions\Action2\Params] expandvars=STRING|"0" line00000000=STRING|"txt = """"" line00000001=STRING|"for i=0 to RoboTaskApp.TaskCount - 1 step 1" line00000002=STRING|" id = RoboTaskApp.TaskInfoID(i)" line00000003=STRING|" nam = RoboTaskApp.TaskInfoName(i)" line00000005=STRING|" filename = Hex(id)" line00000006=STRING|" while len(filename) < 8" line00000007=STRING|" FileName = ""0"" + FileName" line00000008=STRING|" wend" line00000009=STRING|" txt = txt + filename + "" = "" + nam + chr(13) + chr(10)" line0000000A=STRING|"next" line0000000C=STRING|"RoboTaskApp.SetUserVariable ""text"", txt" linecount=STRING|"14" savescript=STRING|"0" [Actions\Action3] ActionID=STRING|"A_FILE_SORTTEXT" Enabled=INTEGER|-1 Name=STRING|"Sort Text" Params=FOLDER [Actions\Action3\Params] assignvar=STRING|"1" case=STRING|"0" line00000000=STRING|"{#text}" linecount=STRING|"1" savetofile=STRING|"0" sortmode=STRING|"0" sourcekind=STRING|"1" suppress=STRING|"0" variable=STRING|"text" [Actions\Action4] ActionID=STRING|"A_STR_TRIM" Enabled=INTEGER|-1 Name=STRING|"STR Trim" Params=FOLDER [Actions\Action4\Params] custom=STRING|"0" eol=STRING|"1" lead=STRING|"1" source=STRING|"{#text}" spaces=STRING|"1" tabs=STRING|"1" trailing=STRING|"1" variable=STRING|"text" [Actions\Action5] ActionID=STRING|"A_FILE_TEXTWRITE" Enabled=INTEGER|-1 Name=STRING|"Create text file {TaskFolder}\map.txt" Params=FOLDER [Actions\Action5\Params] encode=STRING|"0" fileexists=STRING|"0" filname=STRING|"{TaskFolder}\map.txt" line0=STRING|"{#text}" linecount=STRING|"1" suppress=STRING|"0" [Actions\Action6] ActionID=STRING|"A_GENERAL_RUN_PROG" Enabled=INTEGER|-1 Name=STRING|"Run ""map.txt """ Params=FOLDER [Actions\Action6\Params] ifnonzero=STRING|"0" program=STRING|"{TaskFolder}\map.txt" runas=STRING|"0" wait=STRING|"0"