Jump to content
Sign in to follow this  
evg64

Problem with WinMenuSelectItem function

Recommended Posts

evg64

I want to make program choose "Save All" if a text editor:

msgbox(0,0,WinMenuSelectItem("Crimson Editor", "", "&File", "&Save All") )

This comand doesnt work. In the opposite, the following command works normally:

msgbox(0,0,WinMenuSelectItem("Crimson Editor", "", "&File", "&New") )

I can`t understand, what is the reason. I`ve attached a scrinshot, where the needed menu item is marked.

post-31646-1207484568_thumb.jpg

Share this post


Link to post
Share on other sites
FreeFry

I don't have crimson editor, but are you sure the "Save All" menu item has the & before the S?

I'm suspecting that might be the problem...

Edited by FreeFry

Share this post


Link to post
Share on other sites
JustinReno

It doesn't look like any of them have the underscore under the letter.

Share this post


Link to post
Share on other sites
FreeFry

In that case, try this:

WinMenuSelectItem("Crimson Editor", "", "&File", "Save All")

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  

×