Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Menu handler is 0 for Explorer folder main menu
#3
Not Solved
Thank you a lot for the idea, but it looks like it is not the cause of the problem:
1. If I run this part of code WordPad it retrieves all handlers successfully
' Get the Handle of the main window. Make sure you launch wordpad.exe before you run this example (insted of folder window)
WinHandle = Window("title:=.* - WordPad", "index:=0").GetROProperty("hwnd")

2. I click on File menu (and still the problem is the same)
Window("regexpwndtitle:="&strWin).WinToolbar("regexpwndclass:=ToolbarWindow32","windowstyle:=1442895949").Press "&File"

My guess here is that the problem is because of objects hierarhy (our menu context is on the menu bar) and it seems that MenuHandle = Extern.GetMenu(WinHandle) is not the handler to the main menu.
When I try to spy the menu the handler is not the same I get from the script Sad

What do you think about this? Will be really appreciate any thoughts.
Reply


Messages In This Thread
RE: Menu handler is 0 for Explorer folder main menu - by Andriana - 09-10-2009, 02:16 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Unable to perform click operation on MDI menu/sub menu (Infragistics) with UFT 12 Mahen1108 0 3,451 06-17-2015, 05:29 PM
Last Post: Mahen1108
  Problem with menu object (UFT) Marta79 4 4,154 05-07-2015, 12:44 PM
Last Post: Marta79
  QTP 11 is not working for Internet Explorer 10 Niraj 5 10,125 08-14-2013, 01:34 PM
Last Post: Niraj
  Explorer Crash - when UFT 11.5 is open sriramb 2 3,770 07-08-2013, 05:18 PM
Last Post: Ankur
  create drop Down list or menu in qtp abansal 0 3,946 09-07-2012, 05:36 PM
Last Post: abansal

Forum Jump:


Users browsing this thread: 1 Guest(s)