GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 87 of 674    Print  
How can you capture clipboard data. Before that I want to cleanup the existing contents of clipboard & then proceed.

  
Total Answers and Comments: 4 Last Update: July 20, 2006     Asked by: dsharma 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 12, 2006 02:19:20   #1  
jyotsna        

RE: How can you capture clipboard data. Before that I ...

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


 
Is this answer useful? Yes | No
July 13, 2006 04:12:14   #2  
dsharma Member Since: February 2006   Contribution: 59    

RE: How can you capture clipboard data. Before that I ...
The question was reagrding clipboard data and not date !
 
Is this answer useful? Yes | No
July 19, 2006 01:56:28   #3  
ravikonka        

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

 
Is this answer useful? Yes | No
July 20, 2006 04:19:08   #4  
dsharma Member Since: February 2006   Contribution: 59    

RE: How can you capture clipboard data. Before that I ...

Thank You Ravi


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape