Paste from Clipboard

Verb: paste

Pastes content from the operating system's clipboard into an active window.

Syntax

paste

Example

The Copy to Clipboard command copies the entire selected content from Notepad, and then the Paste from Clipboard command pastes this content into a new Notepad window.

defVar --name windowNotepad --type Window
defVar --name windowNotepad2 --type Window
launchWindow --executablepath "notepad.exe" --timeout 00:00:30 windowNotepad=value
typeText --text "IBM"
keyboard --type "KeyPress" --key "ControlKey"
keyboard --type "KeyDown" --key "A"
copyToClipboard
launchWindow --executablepath "notepad.exe" --timeout 00:00:30 windowNotepad2=value
focusWindow --window ${windowNotepad2}
paste

See Also

  • Clear Clipboard
  • Copy to Clipboard
  • Get Clipboard Content
  • Increment Clipboard Value
  • Send to Clipboard