Clipboard - Copy / Save

Sorry for my bad english, i think you understand what i want to say....

I read posts on this forum about clipboard. I'm not tested DO9 functions.
This is my solution to Dopus 8.x and clipboard.
You can create a hotkey to serve like:
Ctrl+Alt+1 - put in clipboard text1
Ctrl+Alt+2 - put in clipboard text2
etc... - usefull - maybe if you edit a webcatalog or something else.
Iy you create a system wide hotkey, you can use this shortcuts on any application (like editing web/firefox etc...) - how to do a system-wide hotkey? Like this - just copy function... http://litwinczuk.nazwa.pl//archiwum/uzyte/dopus_forum/snap003442.jpg

You need download the program SetClip.exe and put path to this program in your path - on my disk is
"D:\DANE\Programy\Tekst\Programy\Pchelki\SetClip.exe"
you can download it from here:
[url]SetClip]

First button: Put some one-line text to clipboard.

[quote]<?xml version="1.0"?>

{64AA7423-DD5B-48AB-8134-22CAD5F19989}
Definied text to clipboard
Put some one-line text to clipboard
118
112

runmode hide
"D:\DANE\Programy\Tekst\Programy\Pchelki\SetClip.exe" "Some text blah blah blah xxxxxx Greetz, Mariusz Litwińczuk"


[/quote]If you click this button, your clipboard will be replaced with this text:
Some text blah blah blah xxxxxx Greetz, Mariusz Litwińczuk

Second button: Text with new lines.

[quote]<?xml version="1.0"?>

{B24B3A5E-A849-4987-9198-A7EF9ECC7C21}
Text with lines
Text with new lines
118
112

runmode hide
"D:\DANE\Programy\Tekst\Programy\Pchelki\SetClip.exe" "Some text blah blah blah xxxxxx Greetz, Mariusz Litwińczuk" "Line number two" "Number three" "and finally number five"


[/quote]Effect:
Some text blah blah blah xxxxxx Greetz, Mariusz Litwińczuk
Line number two
Number three
and finally number five

Third button: We add text to clipboard without erasing existing text...

[quote]<?xml version="1.0"?>

{B24B3A5E-A849-4987-9198-A7EF9ECC7C21}
Add text to clipboard
We add text to clipboard without erasing existing text
118
112

runmode hide
"D:\DANE\Programy\Tekst\Programy\Pchelki\SetClip.exe" -a "New text added to clipboard without erasing existing text"


[/quote]Effect:
If you have in your clipboard text ssss before you click this button, effect will be:
ssss
New text added to clipboard without erasing existing text

Fourth button: We erasing clipboard

[quote]<?xml version="1.0"?>

{B24B3A5E-A849-4987-9198-A7EF9ECC7C21}
Clipboard erase
We erasing clipboard
118
112

runmode hide
"D:\DANE\Programy\Tekst\Programy\Pchelki\SetClip.exe" -e

[/quote]Effect: clipboard will be empty...


To save a clipboard content fo file with this method you need additional software. (BSD License - like freeware)
You need download the program sfk.exe and put path to this program in your path - on my disk is
"D:\DANE\Programy\Tekst\Programy\Pchelki\sfk.exe"
you can download it from here:
http://litwinczuk.nazwa.pl//archiwum/uzyte/dopus_forum/sfk.zip

Fifth button: Save clipboard to selected file +add .txt extension.
We create a description for selected file with text from clipboard contents. - VERY USEFULL !!!

[quote]<?xml version="1.0"?>

{5F64EC2D-E788-4F46-A9AB-AB3719E9322D}
Clip save Filename +txt
Save clipboard to selected file +add .txt extension
149
151

runmode hide
"D:\DANE\Programy\Tekst\Programy\Pchelki\sfk.exe" fromclip >"{f}.txt"

[/quote]
Select file FILENAME.ZIP and click.
Effect:
created new file FILENAME.ZIP.txt - with clipboards contents

Sixth button: Like this, but better?
YOU CAN COPY TEXT FROM WEB PAGE AND CREATE A FILE-DESCRIPTION WITH THIS BUTTON

[quote]<?xml version="1.0"?>

{BBE412D6-3039-4A6A-8CC5-778883BF695C}
Create description
Save clipboard to selected file with .txt extension
149
151

runmode hide
"D:\DANE\Programy\Tekst\Programy\Pchelki\sfk.exe" fromclip >"{f|noext}.txt"

[/quote]
Select file FILENAME.ZIP and click.
Effect:
created new file FILENAME.txt - with clipboards contents (no mother-filename extension)

And small screen on end:

First - original file.
Second (black-selected) after 6th button click
Third - after 5th button click

See yaaa - long post, much of work, but maybe someone will use this and thanks me for it?

wanna more?

I some time ago created buttons to sort text-files / count lines / find duplicates / erase duplicates/ count duplicates etc..

Maybe in next days i find it and post another button-pack....

Those are some great useable functions ! :slight_smile:

[quote="LITWINCZUK"]wanna more?

I some time ago created buttons to sort text-files / count lines / find duplicates / erase duplicates/ count duplicates etc..

Maybe in next days i find it and post another button-pack....[/quote]

All these stuff is very welcome. :sunglasses: :sunglasses:

This reminds me to the amiga days. There where buttons for everything. GREAT!!!!!