12-31-2008, 11:46 AM
hi,
I am using the following code for Minimize window:
and this code is for Restoring window
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
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