Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
get handle of a property sheet
#1
Solved: 10 Years, 8 Months, 3 Weeks ago
Hi,
I am trying to get the handle of a property sheet (wizard).

I used object spy to see the window class name to be of type "Window".

And the text field is "Installation Program"

When I called Extern.FindWindow("Window","Installation Program") the return value is 0.
If I called Extern.FindWindow(vbNullString,"Installation Program") the return value is different from that found in "hwnd" field through object spy.

I have a declaration of FindWindow at the beginning of the script as

Code:
Extern.Declare minHwnd, "FindWindow", "user32.dll", "FindWindowA",micString, micString

Please help me with this.
Thanks
Reply
#2
Solved: 10 Years, 8 Months, 3 Weeks ago
check 'regexpwndclass' value at Spy and use it at FindWindow. it must be 'CabinetWClass' for Window and '#32770' for a Dilog Window.
try
Code:
Extern.FindWindow("'CabinetWClass","Installation Program")

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can QTP handle slick grid table in a web page qtplearner88 2 4,259 10-01-2019, 10:44 AM
Last Post: shilpi952
  How to Handle Modal Dialogs In QTP Jyobtech 0 2,324 07-22-2015, 01:22 AM
Last Post: Jyobtech
  How to handle KeyUp Event used in my App Hpqtp 3 3,683 07-03-2014, 05:25 AM
Last Post: supputuri
  How to handle scroll down in the web page Mala 14 23,749 04-01-2013, 09:55 AM
Last Post: basanth27
  How to handle the hidden fields using vbscript? Rameshkatru 0 2,648 11-17-2011, 12:33 PM
Last Post: Rameshkatru

Forum Jump:


Users browsing this thread: 1 Guest(s)