SetClipboard
void SetClipboard(string text)Description
Writes the given string into the Windows clipboard.
The text is stored as Unicode text (CF_UNICODETEXT) and can subsequently be pasted into any application using Ctrl+V or programmatic paste operations.
Parameter
- text - The string to write into the clipboard.
Return
- void
Example
void main()
{
SetClipboard("Hello World"); // Writes "Hello World" into the clipboard
SendKeys("myInputField", "^v"); // Pastes the clipboard content into a control
}