april Posted September 17, 2009 Share Posted September 17, 2009 I am writing a test for one application. When application is running, it will start a tool bar, instead of window. How could I check if toolbar is ready? My code seems not working: Run("C:\Program Files\Nuance\NaturallySpeaking9\Program\natspeak.exe") WinWaitActive("DragonBar") WinMenuSelectItem("DragonBar", "", "&NaturallySpeaking", "Manage User&s..." ) Thanks! April Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 17, 2009 Share Posted September 17, 2009 (edited) I am writing a test for one application. When application is running, it will start a tool bar, instead of window.How could I check if toolbar is ready?My code seems not working: Run("C:\Program Files\Nuance\NaturallySpeaking9\Program\natspeak.exe")WinWaitActive("DragonBar")WinMenuSelectItem("DragonBar", "", "&NaturallySpeaking", "Manage User&s..." )Thanks!AprilLots of menus don't respond to AutoIt's native WinMenuSelectItem() function, as described in the help file: WinMenuSelectItem will only work on standard menus. Unfortunately, many menus in use today are actually custom written or toolbars "pretending" to be menus.I don't know for sure, but Dragon Naturally Speaking could very well be one of those menus.What does it show when checked out with AU3Info.exe? Edited September 17, 2009 by PsaltyDS Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
april Posted September 17, 2009 Author Share Posted September 17, 2009 My problem is WinWaitActive("DragonBar") never returns. I used WinInfo tool, it shows it is a toolbar. It show title "DragonBar". Is there anyway I can detect toolbar? Thanks! April Link to comment Share on other sites More sharing options...
april Posted September 17, 2009 Author Share Posted September 17, 2009 For the menu part, you are exactly right. It is a button accroding to AuWinInfo application. After user clicks, it show a drop down menu. How could I use au3 script to clcik something in that drop down menu? Thanks! April Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 18, 2009 Share Posted September 18, 2009 For the menu part, you are exactly right. It is a button accroding to AuWinInfo application. After user clicks, it show a drop down menu. How could I use au3 script to clcik something in that drop down menu?Thanks!AprilPost the data from the Summary tab of AU3Info while it is examining the control. The window info will help figure out the WinWaitActive() problem, and the control class will determine how to handle the "menu". Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law 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