SetClipboardText - web automation method

This IE automation method places text on the clipboard.

Applies to:
Core
  coreObj.SetClipboardText(text);
Arguments:
Remarks:
The text is placed on the clipboard in both ANSI and Unicode format. The method throws a web macro exception if the clipboard operation fails. In this case the lastError property of the Core object is set to FAIL_ERROR.
Example:
var coreObj = new ActiveXObject("OpenTwebst.Core");
coreObj.SetClipboardText("Open Twebst Library");

var clipboardText = coreObj.GetClipboardText();
WScript.Echo(clipboardText);
		
See also:
Core | GetClipboardText

© 2017 CodeCentrix Software. All rights reserved.