pammi Posted May 30, 2012 Share Posted May 30, 2012 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? Link to comment Share on other sites More sharing options...
Zedna Posted May 30, 2012 Share Posted May 30, 2012 WinMenuSelectItem() Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
pammi Posted May 30, 2012 Author Share Posted May 30, 2012 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. Link to comment Share on other sites More sharing options...
Zedna Posted May 30, 2012 Share Posted May 30, 2012 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..." ) Not true. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
pammi Posted May 30, 2012 Author Share Posted May 30, 2012 I tried the following on notepad, still no luck WinMenuSelectItem("[CLASS:Notepad] ", "", "File", "Page Setup..." ) Link to comment Share on other sites More sharing options...
Zedna Posted May 30, 2012 Share Posted May 30, 2012 (edited) I tested this on my Czech Windows with Czech item texts and it works. Opt('WinTitleMatchMode',2) WinMenuSelectItem("Notepad", "", "&File", "&Page Setup..." ) If menu items don't have ampersand then it works too. Edited May 30, 2012 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
pammi Posted May 31, 2012 Author Share Posted May 31, 2012 No luck again..dint work in windows XP. is there any other way?? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now