Clipboard issue

Discuss RoboTask here
Post Reply
rtl2710
Posts: 1
Joined: Wed Sep 24, 2008 11:05 am

Clipboard issue

Post by rtl2710 »

Hi,

I'm trying to copy a text from pdf file to clipboard,
unbreak lines, and copy the text back to clipboard.
I'm using AutoUnbreak to remove line breaks, and
robotask to copy the selected text, paste into
AutoUnbreak, press 3 buttons to get my text without
lines copied to clipboard, and exiting the program.
The script I'm using does open AutoUnbreak, but nothing
happens after that.

Does anyone know what I'm doing wrong? I can post the
script if requested.
Oleg
Site Admin
Posts: 3014
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Clipboard issue

Post by Oleg »

See the example below. It's working.
Save the text of the task to file and use menu Task | Import in order to import into RoboTask. Don't forget to enable it.

This example works so: select necessary part of PDF and press Ctrl-Alt-P


;*****************************
;* RoboTask Task file       
;* Do not edit in text editor!
;*****************************

[Root]
ActionAfterRun=INTEGER|0
Actions=FOLDER
Automat=INTEGER|-1
CatID=INTEGER|1961495446
ContinueOnError=INTEGER|0
Events=FOLDER
ExternalName=STRING|"Task22"
Hide=INTEGER|0
ID=INTEGER|1176102695
Name=STRING|"Copy from PDF"
Priority=INTEGER|3
RunOnClose=INTEGER|0
RunOnStartup=INTEGER|0
ToLog=INTEGER|3
WriteGeneralLog=INTEGER|0

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

[Actions\Action1]
ActionID=STRING|"A_CLIPBOARD_COPY"
Enabled=INTEGER|-1
Name=STRING|"Copy"
Params=FOLDER

[Actions\Action1\Params]
mode=STRING|"1"

[Actions\Action2]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""TXT"" with value """""
Params=FOLDER

[Actions\Action2\Params]
expand=STRING|"0"
varname=STRING|"TXT"

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

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

[Actions\Action4]
ActionID=STRING|"A_VARIABLES_SET"
Enabled=INTEGER|-1
Name=STRING|"Set variable ""TXT"" with value ""{TXT} {c_line}"""
Params=FOLDER

[Actions\Action4\Params]
expand=STRING|"1"
varname=STRING|"TXT"
varvalue=STRING|"{TXT} {c_line}"

[Actions\Action5]
ActionID=STRING|"A_LOOP_END"
Enabled=INTEGER|-1
Name=STRING|"End Loop"

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

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

[Events]
Event1=FOLDER

[Events\Event1]
Enabled=INTEGER|-1
EventID=STRING|"E_GENERAL_HOTKEY"
Params=FOLDER

[Events\Event1\Params]
hotkey=STRING|"49232"
Post Reply