Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Restore windows in Vista
#1
Not Solved Wink 
hi,

I am using the following code for Minimize window:
Code:
hwnd1=Browser("Prod-CST1").GetROProperty("hwnd")
hwnd2=Browser("Prod-CST1").Object.HWND
Set cWindow=Window("hwnd:="&hwnd2)
cWindow.Minimize

and this code is for Restoring window
Code:
hwnd3=Browser("Advertiser: Ongoing").GetROProperty("hwnd")
hwnd4=Browser("Advertiser: Ongoing").Object.HWND
Set cWindow=Window("hwnd:="&hwnd4)
cWindow.Restore

I am using QTP 9.2 and IE 7.0 for record and run scripts
The above both code is working fine in Windows XP but This code is not working in Windows Vista,

Could anyone please help me for Vista.

Thanks,
Chetan
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to open a file using open file dialog windows vista umer830 10 13,432 12-21-2009, 01:48 PM
Last Post: Saket

Forum Jump:


Users browsing this thread: 1 Guest(s)