----------------------------------------------------------------------
--- Knud van Eeden --- 11 December 2009 - 08:37 pm -------------------

String: Operation: Copy: Clipboard: Windows: List: Template: Simple: Operation: Create: How to create a simple list to copy your template strings to clipboard? [Microsoft Windows clipboard]

---

Tired of typing the same text again and again?

Do you want to copy your template strings (e.g. your name, signature,
...) to the Microsoft Windows clipboard,
So that you can paste it in another application.

Optionally put it in your TSE right click mouse menu and or create a
TSE short key for easy use.

===

Steps: Overview:

 1. -E.g. create the following program:

--- cut here: begin --------------------------------------------------
FORWARD PROC Main() FORWARD PROC PROCStringCopyClipboardListSimple() // --- MAIN --- // PROC Main() PROCStringCopyClipboardListSimple() END <F12> Main() // --- LIBRARY --- // // library: string: copy: clipboard: list: simple <description></description> <version>1.0.0.0.2</version> (filenamemacro=copystls.s) [kn, am, fr, 11-12-2009 20:23:54] PROC PROCStringCopyClipboardListSimple() // STRING s1[255] = "" // INTEGER bufferI = 0 // INTEGER I = 0 // PushPosition() // bufferI = CreateTempBuffer() // GotoBufferId( bufferI ) // AddLine( "" ) AddLine( "+1-123-456-7890" ) AddLine( "-" ) AddLine( "123-456-7890" ) AddLine( "5" ) AddLine( "California" ) AddLine( "Doe" ) AddLine( "Hi" ) AddLine( "email" ) AddLine( "http://www.mywebsite.com" ) AddLine( "John Doe" ) AddLine( "John" ) AddLine( "john.doe@gmail.com" ) AddLine( "john.doe@hotmail.com" ) AddLine( "john.doe@yahoo.com" ) AddLine( "Kind regards," ) AddLine( "Kind regards, John Doe" ) AddLine( "phone +1-123-456-7890" ) AddLine( "phone" ) AddLine( "Regards," ) AddLine( "telephone" ) AddLine( "San Francisco" ) AddLine( "USA" ) AddLine( "zip 12345-1234" ) // I = List( "string: copy: clipboard: windows: list", 30 ) // IF ( NOT ( I == 0 ) ) // s1 = GetText( 1, 255 ) // CopyToWinClip( s1 ) // ENDIF // GotoBufferId( bufferI ) // AbandonFile() // PopPosition() // END
--- cut here: end ---------------------------------------------------- 2. -Compile the program 3. -Run the program 4. -You can then choose from the list your template string (e.g. your name, telephone number, email address, signature, ...) and it will be copied to the Microsoft Windows clipboard. 5. -You can then e.g. paste that string in (another) application (e.g. your credit card form), without having to retyping it all the time. === Book: see also: === Diagram: see also: === File: see also: === Help: see also: === Image: see also: === Internet: see also: === Podcast: see also: === Screencast: see also: === Table: see also: === Video: see also: --- ----------------------------------------------------------------------