cappy2112 Posted December 29, 2005 Share Posted December 29, 2005 I'm using AutoIt 3- to try and access mensu in the target app, but I have no idea how do to this. I've already gotten the target app text, and tried using the Active Window info program to montior the target app while i clikc on the Menu, but nothing shows up other than Mouse Coordinates, when I access the menu. Any suggestions or examples of how to access a menu? thanks Link to comment Share on other sites More sharing options...
LxP Posted December 29, 2005 Share Posted December 29, 2005 WinMenuSelectItem() should do what you need. Link to comment Share on other sites More sharing options...
sksbir Posted December 29, 2005 Share Posted December 29, 2005 I suggest you to download and install SciTe4AutoIt3.exe, and the use the au3 recorder to trap all your actions. Link to comment Share on other sites More sharing options...
cappy2112 Posted December 29, 2005 Author Share Posted December 29, 2005 WinMenuSelectItem() should do what you need.Thanks, but I've been trying this, but it looks like the menu is not a Standard Microsoft control.No Control ID's are disp;ayed when I click on the menu items, and my call to WinMenuSelectItem() is failing when I tell it to look for a Menu Item, and Subment Item Link to comment Share on other sites More sharing options...
cappy2112 Posted December 29, 2005 Author Share Posted December 29, 2005 I suggest you to download and install SciTe4AutoIt3.exe, and the use the au3 recorder to trap all your actions.Wow- didn't even know about this program.WIll take a look- thanks Link to comment Share on other sites More sharing options...
LxP Posted December 29, 2005 Share Posted December 29, 2005 I don't believe that control IDs are shown (or exist) for menu items. Also keep in mind that any underlined letter on an entry means that you must prepend that letter with an ampersand, e.g. Exit > E&xit. Link to comment Share on other sites More sharing options...
cappy2112 Posted December 30, 2005 Author Share Posted December 30, 2005 I don't believe that control IDs are shown (or exist) for menu items. Also keep in mind that any underlined letter on an entry means that you must prepend that letter with an ampersand, e.g. Exit > E&xit.My menu does not have any underlines or ampersands, for the top level menu selections.Thanks for bringing that up though.My menu looks like this- see attached.Since I want to access the Synths menu option , then Bank Upload... as the selection under the Synths menu (not visible in this attachment), does my call to WinMenuSelect() look correct to you ?WinMenuSelectItem ( "Nord Modular G2 Editor", "", "Synths" , "Bank Upload...") Link to comment Share on other sites More sharing options...
LxP Posted December 30, 2005 Share Posted December 30, 2005 You appear to be using Windows XP -- do underlined letters appear if you hold down the Alt key? (XP hides keyboard accelerators by default.) Link to comment Share on other sites More sharing options...
cappy2112 Posted December 30, 2005 Author Share Posted December 30, 2005 WinMenuSelectItem() should do what you need.This Script recorder is unbelievable.What I spent 6 hours on yesterday, was fixed in 5 minutes. 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