Jump to content

Usuing Menus


Guest voltfromtheblue
 Share

Recommended Posts

Guest voltfromtheblue

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?

Link to comment
Share on other sites

  • 1 month later...
Guest voltfromtheblue

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)?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...