Using DOSlib's dos_clipboard function to build a Windows Clipboard History

Using DOSlib's dos_clipboard function to build a Windows Clipboard History

Anonymous
Not applicable
1,206 Views
1 Reply
Message 1 of 2

Using DOSlib's dos_clipboard function to build a Windows Clipboard History

Anonymous
Not applicable

When I use the DOSlib dos_clipboard function at the command line to copy text to the Windows clipboard, it will build a clipboard history (a fairly new and useful feature in Windows) each time I use it.  I can then retrieve and paste all of the copies with the <Windows-V> keyboard combination.  However if I use the function inside a lisp routine, it only adds the last copy to the history.

 

For example (progn (dos_clipboard "1") (dos_clipboard "2")) will only add "2" to the clipboard history.

 

Would anyone know a way to use dos_clipboard inside autolisp such that it adds all instances to the clipboard?

0 Likes
1,207 Views
1 Reply
Reply (1)
Message 2 of 2

diagodose2009
Collaborator
Collaborator

From old, days (C++ Author Charles 1996/P)  was develope ClipView.exe. The main ideea, you recompile clipview.c to clipview2.exe. If you send a prefix  (dos_clipboard "$A=2") the program ClipView2.exe keep inside BufferText not in clipboard buffer.You do not forget ClipView2.exe can keep old value before "$A=2" inside ResourceString.

If your lisp send (dos_clipboard "$C=")  then ClipView2.exe clear clipboard memory(not clear inside BufferText)..

If your lisp send (dos_clipboard "$P=2")  then ClipView2.exe paste from inside BufferText to Clipboard "1+2" and you run (setq answer (dos_clipboardpaste)). 

If your lisp send (dos_clipboard "$L=" ) then ClipView 2.exe execute (StrLower "InsideBufferText").

If your lisp send (dos_clipboard "$R=old--new--LargeString" ) then ClipView 2.exe replace all Old to New inside LargeString.

If your lisp send (dos_clipboard "$E= ) then you send Quit or Exit to ClipView 2.exe.

0 Likes