Sign in to follow this  
Followers 0
althurm

Accessing file menu and buttons from running app

6 posts in this topic

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?

Share this post


Link to post
Share on other sites



It looks like you need to look at some of these commands:

_GUICtrlMenu_GetItemCount

_GUICtrlMenu_GetItemText

_GUICtrlMenu_GetItemEnabled

_GUICtrlMenu_GetItemDisabled


#include <ByteMe.au3>

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0