only want a single line

Discuss RoboTask here
Post Reply
andydis
Posts: 2
Joined: Fri Apr 24, 2020 2:53 am

only want a single line

Post 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?
Attachments
errorrobo.jpg
errorrobo.jpg (204.37 KiB) Viewed 3872 times
Oleg
Site Admin
Posts: 3010
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: only want a single line

Post 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 3870 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"
Oleg Yershov
Post Reply