faqts : Computers : Programming : Languages : Tse : Clipboard

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

TSE: Clipboard: Named: TSE: Operation: Get: How to get the bufferid of a named clipboard?

Nov 12th, 2006 15:41
Knud van Eeden,


----------------------------------------------------------------------
--- Knud van Eeden --- 12 November 2006 - 10:45 pm -------------------

TSE: Clipboard: Named: TSE: Operation: Get: How to get the bufferid of 
a named clipboard?

---

Method: Prefix the letter of the clipboard with '+++', and goto that 
bufferid

--- cut here: begin --------------------------------------------------

FORWARD INTEGER PROC FNClipboardGetBufferNamedSimpleI( STRING s1 )

FORWARD PROC Main()

FORWARD STRING PROC FNStringGetClipboardBufferNamedFilenameSimpleS( 
STRING s1 )


// --- MAIN --- //

PROC Main()
 Message( FNClipboardGetBufferNamedSimpleI( "A" ) ) // gives e.g. 29
END

<F12> Main()

// --- LIBRARY --- //

// library: clipboard: get: buffer: named: simple 
(filenamemacro=getclnsi.s) [kn, ri, su, 12-11-2006 22:47:34]

INTEGER PROC FNClipboardGetBufferNamedSimpleI( STRING s )

 STRING clipBoardNameS[255] = 
FNStringGetClipboardBufferNamedFilenameSimpleS( s )

 INTEGER bufferId = GetBufferId( clipBoardNameS )

 RETURN( bufferId )

END

// library: string: get: clipboard: buffer: named: filename: simple 
(filenamemacro=getstfsi.s) [kn, ri, su, 12-11-2006 22:49:22]

STRING PROC FNStringGetClipboardBufferNamedFilenameSimpleS( STRING s )

 RETURN( "+++" + s )

END

--- cut here: end ----------------------------------------------------

===

Internet: see also:

---

TSE: Clipboard: Named: Link: Overview: Can you give an overview of 
links?
http://www.faqts.com/knowledge_base/view.phtml/aid/42993/fid/899

----------------------------------------------------------------------