Working with the Clipboard - QTP

'Create a .NET computer object
Set Obj = DotNetFactory("Microsoft. VisualBasic.Devices.Computer",
"Microsoft.VisualBasic")
'Get the clipboard's text
Print "Clipboard Text - "&Obj.Clipboard.GetText()
'Clear the clipboard Obj.Clipboard.Clear()
'write a new value to the clipboard
Obj.Clipboard.SetText "This is a test"
Print "Clipboard Text - "&Obj.Clipboard.GetText()

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

QTP Topics