Micro Focus QTP (UFT) Forums
How QTP records context menu in .net GUI applications - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How QTP records context menu in .net GUI applications (/Thread-How-QTP-records-context-menu-in-net-GUI-applications)



How QTP records context menu in .net GUI applications - vanibandla - 02-25-2011

Hi
I am trying to capture the right click menu of an object which is a part of tree view but not able to do it
I tried sendkeys but still not working

Code:
'set WshShell = CreateObject("WScript.Shell")
'WshShell.SendKeys"{APPKEY}"
'WshShell.SendKeys "{DOWN}"
'WshShell.SendKeys "{DOWN}"
'WshShell.SendKeys "{DOWN}"
'WshShell.SendKeys "{ENTER}"

Please Help


RE: How QTP records context menu in .net GUI applications - basanth27 - 02-25-2011

Is the tree object identified ? If yes, you may have to use the user32.dll to simulate the mouse right click action.