How can you capture clipboard data. Before that I want to cleanup the existing contents of clipboard & then proceed.

Questions by dsharma   answers by dsharma

Showing Answers 1 - 4 of 4 Answers

jyotsna

  • Jul 12th, 2006
 

function actualdate     'call this function in your script

b = date
a=dateadd("d",4,b)

  msgbox(a)
  day1=day(a)
  If day1<10 Then
  day1= 0 & day1
  End If

 msgbox(day1)
 month1=month(a)
 If month1< 10 Then
 month1= 0 & month1
 End If

 msgbox(month1)
 year1=year(a)
 msgbox(year1)
 yy=right(year1,2)
 msgbox(yy)

getnewdate=month1&"/"&day1&"/"&yy
msgbox(getnewdate)

actualdate=getnewdate

end function

  Was this answer useful?  Yes

ravikonka

  • Jul 19th, 2006
 

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

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions