Search notes:

Windows Clipboard

Clipboard history

With Windows 10, build 17666, Windows comes with the ability to historize items from the Clipboard.
This «feature» needs to be enabled, for example with PowerShell:
$eatMe = new-itemProperty -path 'HKCU:\Software\Microsoft\Clipboard' -name EnableClipboardHistory -propertyType DWord -value 1 -force
Github repository about-Windows-Registry, path: /HKEY_CURRENT_USER/Software/Microsoft/Clipboard/enable-clipboard-history.ps1
After history has been enabled, the historized items can be accessed with the Win+v shortcut.

Accessing the clipboard from the command line

clip.exe allows to put text into the clipboard in the command line (cmd.exe or PowerShell).
The specific PowerShell commands set- and get-clipboard allow to read and write into the clipboard:
set-clipboard 'some text'
get-clipboard

See also

The PowerShell cmdLet nouns clipboard and clipboardText.
The .NET class System.Windows.Forms.Clipboard
Accessing the clipboard with VBScript and MSHTML.
Visual Basic for Applications:
Registry key HKEY_CURRENT_USER\Software\Microsoft\Clipboard
Perl module Win32::Clipboard
The pc.bat batch file which writes the current working directory into the clipboard.
The (Excel) VBA functions

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1745583676, '3.144.91.115', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/clipboard/index(83): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78