althurm Posted August 31, 2011 Posted August 31, 2011 Hello all, New to this autoit scripting. I like it. I have a custom windows app that we use here at work. I am wondering if there is a way through windows I can communicate with the app to get information in the file menus. When opening the file menu I would like to make a function that returns the selections that I have. For example, in notepad it would tell me that under "File" I have New, Open, Save, Save as, etc.... I would also like to know if any of the selections are disabled (greyed out). I figure I'll probably have to start by sending a button command to open the file menu such as Send("!f",0). That part is easy. Any ideas where to go from there?
James Posted August 31, 2011 Posted August 31, 2011 Check out http://www.autoitscript.com/autoit3/docs/tutorials/notepad/notepad.htm Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
althurm Posted August 31, 2011 Author Posted August 31, 2011 On 8/31/2011 at 1:33 PM, JamesBrooks said: Check out http://www.autoitscript.com/autoit3/docs/tutorials/notepad/notepad.htm That didnt help at all. I need to see return values of what is in the menu, not execute commands in the menu. Also, my problem is not specific to notepad, it should work for any windows app
James Posted August 31, 2011 Posted August 31, 2011 On 8/31/2011 at 2:03 PM, althurm said: Also, my problem is not specific to notepad, it should work for any windows appI see that you have no idea of what an example is then? Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
sleepydvdr Posted August 31, 2011 Posted August 31, 2011 It looks like you need to look at some of these commands: _GUICtrlMenu_GetItemCount _GUICtrlMenu_GetItemText _GUICtrlMenu_GetItemEnabled _GUICtrlMenu_GetItemDisabled #include <ByteMe.au3>
althurm Posted September 1, 2011 Author Posted September 1, 2011 On 8/31/2011 at 6:32 PM, sleepydvdr said: It looks like you need to look at some of these commands: _GUICtrlMenu_GetItemCount_GUICtrlMenu_GetItemText_GUICtrlMenu_GetItemEnabled_GUICtrlMenu_GetItemDisabled That is exactly what i needed. Thanks!
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