Jump to content
Sign in to follow this  
pammi

Find a Menu with no underlining

Recommended Posts

Hi all,

I need to click on a menu that is added during application runtime. Since its a runtime menu it doesn't have a underlining(when ALT is pressed).

So is there a way to click on the menu during runtime?

Share this post


Link to post
Share on other sites

Hi Zedna,

To use WinMenuSelectItem(), we need underlined menu items that contain a '&' character to indicate the underlining.

For ex. WinMenuSelectItem("[CLASS:Notepad] ", "", "&File", "Page Set&up..." )

But in my scenario there is no underlining of the menu as its added during runtime.

Share this post


Link to post
Share on other sites

I tried the following on notepad, still no luck ;)

WinMenuSelectItem("[CLASS:Notepad] ", "", "File", "Page Setup..." )

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...