pammi 0 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? Share this post Link to post Share on other sites
Zedna 280 Posted May 30, 2012 WinMenuSelectItem() Resources UDF ResourcesEx UDF AutoIt Forum Search Share this post Link to post Share on other sites
pammi 0 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. Share this post Link to post Share on other sites
Zedna 280 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 Share this post Link to post Share on other sites
pammi 0 Posted May 30, 2012 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
Zedna 280 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 Share this post Link to post Share on other sites
pammi 0 Posted May 31, 2012 No luck again..dint work in windows XP. is there any other way?? Share this post Link to post Share on other sites