| |
GeekInterview.com > Tech FAQs > QTP
| Print | |
Question: How can you capture clipboard data. Before that I want to cleanup the existing contents of clipboard & then proceed.
|
| July 07, 2006 01:56:28 |
#3 |
| ravikonka |
Member Since: Visitor Total Comments: N/A |
RE: How can you capture clipboard data. Before that I ... |
Clipboard Object The Clipboard object is used to manipulate text and graphics on the Clipboard. Use this object to copy, cut and paste text in the QuickTest Professional script. The object has the same methods as the Clipboard object available in Visual Basic:
Clear GetData GetFormat GetText SetData SetText
Example:
Set cb = CreateObject("Mercury.Clipboard")
cb.Clear
cb.SetText "TEST"
MsgBox cb.GetTextDialog("Login").ActivateDialog("Login").WinEdit("Agent Name:").Type micCtrlDwn + "c" + micCtrlUp
MsgBox cb.GetText
Regards,
Ravi Konka |
| |
Back To Question | |