Search notes:

Microsoft HTML Object Library (MSHTML)

Accessing the clipboard with wscript

MSHTML allows to access clipboard the clipboard.
The following code snippet tries to demonstrate how this might be done in VBScript:
dim html
set html=createObject("htmlfile")

'
' Read clipboard data into variable:
'
clipboardText=html.parentWindow.clipboardData.getData("text")

wScript.echo(clipboardText)

'
' Write a text into the clipboard:
'
html.parentWindow.clipboardData.setData "text", "hello world"

' set html = nothing
See also the VBA module clipboard.

Misc

The GUID of version 4.0 seems to be {3050F1C5-98B5-11CF-BB82-00AA00BDCE0B}.

See also

Useful COM object libraries
Programming the MSHTML Web Browser Control with C++

Index