SetClipboardText - web automation method
This IE automation method places text on the clipboard.
Applies to:
- Core
coreObj.SetClipboardText(text);
Arguments:
-
-
text
is the text to be placed on the clipboard.
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("Twebst.Core");
coreObj.SetClipboardText("Twebst Web Automation Library");
var clipboardText = coreObj.GetClipboardText();
WScript.Echo(clipboardText);
See also:
- Core | GetClipboardText
©
2014 CodeCentrix Software. All rights reserved.