bool SetClipboardPaste(uint)

Sends the provided string directly to the target

Security

Trust Level Required: Full Trust

Parameters

Name Description
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

Remarks

This is useful for pasting a string to the clipboard and the target without needing to call KioApp.SendKey multiple times.

Examples


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

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

Requirements

KioWare for Windows version 8.1 or greater.