Page 1 of 1

only want a single line

Posted: Mon Apr 27, 2020 10:16 pm
by andydis
Please help me I find this very frustrating , i have read the online help and this should work
all i want to do is get a variable from a line of text, why is it so hard?

Re: only want a single line

Posted: Tue Apr 28, 2020 10:01 am
by Oleg
Look at my example, it works
You have to specify variable only without braces in 1-st step
setvar.png
setvar.png (15.71 KiB) Viewed 3897 times
The task example. Save the text of the task to a file and use menu Task->Import to import the task into RoboTask.
Do not forget to enable the task after importing.

Code: Select all

;*****************************
;* RoboTask Task file
;* Do not edit in text editor!
;*****************************
 
[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|444033236
Comment=STRINGLIST
ContinueOnError=INTEGER|0
DoNotStopWhenShutdown=INTEGER|0
ExternalName=STRING|"Task77"
Hide=INTEGER|0
ID=INTEGER|1151108234
LogOnAsUser=INTEGER|1
Name=STRING|"TXT Extract Line..."
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

[Actions\Action1]
ActionID=STRING|"A_TXT_EXTRACTLINE"
Enabled=INTEGER|-1
Name=STRING|"TXT Extract Line"
Params=FOLDER

[Actions\Action1\Params]
external=STRING|"1"
filename=STRING|"D:\Temp\file1.txt"
linecount=STRING|"0"
linenum=STRING|"1"
variable=STRING|"hash"

[Actions\Action2]
ActionID=STRING|"A_DIALOG_MESSAGE"
Enabled=INTEGER|-1
Name=STRING|"Show ""{hash}"""
Params=FOLDER

[Actions\Action2\Params]
icon=STRING|"1"
msg0=STRING|"{hash}"
msgcount=STRING|"1"
playsound=STRING|"0"
showmessage=STRING|"1"