Sign in to follow this  
Followers 0
Guest voltfromtheblue

Usuing Menus

2 posts in this topic

Newbie here - if this is something covered elsewhere (I have looked but you know what it's like when your new!), I apoligise in advance....

How do I interrogate a menu item to return the text displayed?

ControlGetText looks the obvious candidate but doesn't allow a menu structure as a parameter (does it?).

When I use the spy to see if there is a control name available (maybe menus don't have controls - sorry, I'm not a developer, I'm a system tester), the menus seem to be invisible and it merely reports the objects that are underneath the menu.

Anybody help?

Share this post


Link to post
Share on other sites



Yep - one of my colleagues has got this to work, but I get an error on line 42 saying:

$hMenu = GetSystemMenu($hWnd)

Any ideas? Do I need a particular version of AutoIT? Or of Windows (although I am on XP)?

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