I am using PopUpSelect Method to select the content from the menu items after right-click operation.
The problem which i am facing is PopUpSelect method is not recognizing the menuitem if i specify the string, Ex: "Rename", But the same works fine if i mention the index number (say Ex: "#3").
Please, let me know what could be the problem here.
I want to mention the string name instead of index numbers.
Declare the popup menu items. You can give index numbers as the tags or try the 'Record Identifiers' recorder to see if it will return a control id for each menu item. You can then pass the menu item as a string.
Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.
You can also override the PopUpSelect method.
If you can get text of a menu item with tag (let's say #1), you can loop through the list of menu items and if you find a string of your choice, you will call derived :: PopUpSelect method on that particular index.
I know this is not the most efficient way, but it should get you going.