GetClipboardText - web automation method

The method extracts text data from the clipboard.

Applies to:
Core
  var text = coreObj.GetClipboardText();
Arguments:
None.
Remarks:
The method extracts text data from the clipboard in Unicode/ANSI format. The method throws a IE 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");
var clipboardText = coreObj.GetClipboardText();

WScript.Echo(clipboardText);
		
See also:
Core | SetClipboardText

© 2014 CodeCentrix Software. All rights reserved.