bool Paste(string, uint)

Sends Ctrl+V to paste the current clipboard contents to target

Security

Trust Level Required: Full Trust

Parameters

Name Description
text string
The text to save to the clipboard.
target (Optional) uint
Targets: Current = 0 (Sends to whatever currently has focus), Smart = 1 (Currently unused), Browser = 2 (Sends to the active browser). Defaults to 0.

Return

True on success

Examples


var textbox = document.getElementById('textbox');
var pastebox = document.getElementById('pastebox');

setTimeout(function(){ if(KioUtils.SetClipboard('Copied to clipboard from JS call')) console.log('Copied text to clipboard'); }, 1000);

pastebox.addEventListener('click', function(event){ if(KioUtils.Paste()) console.log('Copied text to clipboard'); })

Requirements

KioWare for Windows version 8.1 or greater.