Micro Focus QTP (UFT) Forums
Where is the micRightBtn constant defined? - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Where is the micRightBtn constant defined? (/Thread-Where-is-the-micRightBtn-constant-defined)



Where is the micRightBtn constant defined? - Michael Johnson - 09-02-2009

With a very simple (recorded) script I get a Run Time error: "Variable is undefined: 'micRightBtn'".

Apparently, something went wrong during the install, but how do I fix this without uninstallu=ing and re-installing. Does QTP have something like include paths?

Below is the script that fails:

Code:
Option Explicit
Window("Program Manager").WinListView("SysListView32").Select "Internet Explorer", micRightBtn

If I change micRightBtn to 1, the right click is fired as expected, but I need to run scripts developed by others and cannot change them.


RE: Where is the micRightBtn constant defined? - LauraShadle - 12-28-2012

I too am interested in the answer to this question.

I have a line of automated script that is failing on the micRightBtn command, and I have to manually perform that step and then select from the list.

Code:
SwfWindow("Serious Control Center").SwfTreeView("treeMain").Select "Clients;Client 1;Location 1;CORUSANT - Administrator", micRightBtn

this issue is intermittent.

I am searching for known issues too...

Thank you!
Laura