Put variable value into the clipboard

Discuss RoboTask here
Post Reply
rbtskrules
Posts: 1
Joined: Sat Dec 26, 2015 5:44 pm

Put variable value into the clipboard

Post by rbtskrules »

Hi, I 'm starting with RoboTask and it is amazing what you can do with it. Every day I try to learn some function of this wonderful program . Although I need help on this occasion . As the title of the message, is not like going to clipboard
the contents of a variable ( which contains text ) . Could anyone tell me how i could do this . Regards, and thank you very much.
Oleg
Site Admin
Posts: 3202
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Put variable value into the clipboard

Post by Oleg »

Use Put Text action
See the example below

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
ExternalName=STRING|"Task26"
Hide=INTEGER|0
ID=INTEGER|1570703243
LogOnAsUser=INTEGER|1
Name=STRING|"Put variable contents into clipboard"
OnErrorTaskID=INTEGER|-1
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0

[Actions]
Action1=FOLDER
Action2=FOLDER

[Actions\Action1]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""MYVAR"" with value ""Hello World!!!"""
Params=FOLDER

[Actions\Action1\Params]
expand=STRING|"0"
varname=STRING|"MYVAR"
varvalue=STRING|"Hello World!!!"

[Actions\Action2]
ActionID=STRING|"A_CLIPBOARD_PUT"
Enabled=INTEGER|-1
Name=STRING|"Put Text"
Params=FOLDER

[Actions\Action2\Params]
line0=STRING|"{MyVar}"
linecount=STRING|"1"
sourcetext=STRING|"1"
Save the text of the task to a file and use menu Task->Import to import the task into RoboTask.
Oleg Yershov
Post Reply