TSE: How to create a push and pop clipboard for TSE and Microsoft Windows? Method: Include file

28 views
Skip to first unread message

knud van eeden

unread,
Sep 2, 2026, 12:22:59 PMSep 2
to SemWare TSE Pro Text Editor

H P

unread,
Sep 3, 2026, 10:19:47 AMSep 3
to sem...@googlegroups.com
Knud,

I tried your link; which gives the following link ttps://github.com/knudvaneeden/tse/tree/TRUNK/CLIPSTACK
but I get the message 

404 - page not found

The TRUNK branch of tse does not contain the path CLIPSTACK.



Met vriendelijke groet,
With kind regards,
Atenciosamente,
Mit Freundliche Gruß,
Tuyo sinceramente,


H. Pikaar

Henri...@gmail.com



Op wo 2 sep 2026 om 18:23 schreef 'knud van eeden' via SemWare TSE Pro text editor <sem...@googlegroups.com>:

--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/semware/878339235.211890.1788366116473%40mail.yahoo.com.

J. David Boyd

unread,
Sep 4, 2026, 6:31:05 AMSep 4
to sem...@googlegroups.com

Guy Rouillier

unread,
Sep 4, 2026, 7:44:07 AMSep 4
to sem...@googlegroups.com
Fred, I clicked your link.  As you say, it produces a 404-Page not found.  However, on the left hand side, I see a list of macros, 
a couple with "clip" in the name. I looked in CLIPBOR2 in the clipbor2_readme.md, and read the following:

"This is useful when another macro temporarily needs to change the TSE clipboard. The calling macro can push the current 
clipboard before doing its work and pop it afterward, restoring the previous clipboard contents."

Perhaps this is what you seek:

knud van eeden

unread,
Sep 4, 2026, 7:49:20 AMSep 4
to sem...@googlegroups.com

knud van eeden

unread,
Sep 4, 2026, 8:03:12 AMSep 4
to sem...@googlegroups.com
Hello,

CLIPSTACK works with a stack.

E.g. one can do with regard to the TSE or Microsoft Windows clipboard :

 Push
 Push
 Push
 ...
 Pop
 Pop
 Pop

as usual, so nesting is possible.

===

The idea is based on Carlo Hogeveen's 'clipbor2.zip'

But when I did run that a couple of days ago it needed also besides:

clipbord.s

These 5 extra files be present:


===

I thought that can maybe be done much simpler and less dependent on many other files,
so it could be reduced it to maybe zero or one .inc include file maximally, 

So therefor 'clipstack' was created which needs
only 1 extra file to be present besides clipstack.s, that is:
 
 clipstack.inc

===

Using 

 #INCLUDE[ "clipstack.inc" ]

is already pretty simple to implement.

===

I think I can even reduce it further to no include files
necessary, eg. a begin push and an end pop, I will maybe 
look into that when I need it and when applicable.

===

That push and pop of TSE and Microsoft Windows clipboard content 
is a very interesting idea, similar to

PushPosition()
PopPosition()

PushLocation()
PopLocation()

PushBlock()
PopBlock()

...

Here thus named (adding 'PROC' to avoid clashing with possible future TSE commands):

PROCPushClipboard()
PROCPopClipboard()

PROCPushClipboardWin()
PROCPopClipboardWin()

So I already worked forward to include the possibility that
Semware would implement it also, e.g. like these 4 native TSE functions:

PushClipboard()
PopClipboard()

PushClipboardWin()
PopClipboardWin()

as these are pretty often needed operations when programming TSE SAL.

Knud van Eeden

Reply all
Reply to author
Forward
0 new messages