Page 1 of 1

Porting "Input Box" to clipboard

Posted: Sat Sep 17, 2005 9:42 am
by SkyGull
Olga, hi..

thanks for doing a greta job here..

i bought Robotask a couple of months ago to automate simple dedicated keystrokes.

it's been working great :)

i'm not much of the programming sort (hence Robotask), but i have tried to implement variable functions to do a basic task, without success..

i know i can build an external text file & grab data, then copy & paste, but i would like a simple dialouge box (like input box) which copies the input to the clipboard..

is that possible???

thanks!!!

peace,

:)


john

Porting "Input Box" to clipboard

Posted: Sun Sep 18, 2005 2:11 am
by Oleg
This is easy. Try the task below. You can launch Notepad (for example) and try to paste the string from clipboard after completion of this task.
Save text of task into file and use menu Task | Import to import into RoboTask.

;**********************
;* RoboTask Task file *
;* Do not edit!       *
;**********************

[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|565106205
ContinueOnError=INTEGER|0
ExternalName=STRING|"Task301"
Hide=INTEGER|0
ID=INTEGER|1331447729
Name=STRING|"Copy INPUT to the clipboard"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3

[Actions]
Action1=FOLDER
Action2=FOLDER
Action3=FOLDER
Action4=FOLDER

[Actions\Action1]
ActionID=STRING|"A_DIALOG_INPUTBOX"
Enabled=INTEGER|-1
Name=STRING|"Input Box"
Params=FOLDER

[Actions\Action1\Params]
default=STRING|"None"
prompt=STRING|"Input string you want to move into clipboard"
variable=STRING|"INPUT_STRING"

[Actions\Action2]
ActionID=STRING|"A_FLOW_IF"
Enabled=INTEGER|-1
Name=STRING|"If Then"
Params=FOLDER

[Actions\Action2\Params]
case=STRING|"0"
operator=STRING|"1"
type=STRING|"0"
value1=STRING|"{INPUT_STRING}"
value2=STRING|"None"

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

[Actions\Action3\Params]
line0=STRING|"{INPUT_STRING}"
linecount=STRING|"1"
sourcetext=STRING|"1"

[Actions\Action4]
ActionID=STRING|"A_FLOW_ENDIF"
Enabled=INTEGER|-1
Name=STRING|"End If"