Method ClipGet

AutoIt X

Method Reference


ClipGet

Retrieves text from the clipboard

ClipGet

Return Value

Success: Returns a string containing the text on the clipboard.
Failure: Sets oAutoIt.error to 1 if clipboard is empty or contains a non-text entry.

Related

ClipPut

Example


Set oAutoIt = WScript.CreateObject("AutoItX3.Control")

text = oAutoIt.ClipGet()
WScript.Echo "Clipboard contains:" & text