Jump to content

Windows menu Selector


brock
 Share

Recommended Posts

Hello;

Stats: SciTE

Version 1.75

XP Pro

Relatively new to Autoit

Goal:

I want to select a menu option based on the Text of te menu Option not its position on the menu.

Here is what i can do:

WinWait("classname=Shell_TrayWnd","")

If Not WinActive("classname=Shell_TrayWnd","") Then WinActivate("classname=Shell_TrayWnd","")

WinWaitActive("classname=Shell_TrayWnd","")

; - Sleep(250)

MouseMove(46,23)

MouseDown("left")

MouseUp("left")

WinWait("Start Menu","")

If Not WinActive("Start Menu","") Then WinActivate("Start Menu","")

WinWaitActive("Start Menu","")

MouseMove(119,474)

MouseDown("left")

MouseUp("left")

MouseMove(216,525)

MouseDown("left")

MouseUp("left")

MouseMove(566,482)

MouseDown("left")

MouseUp("left")

Sleep(250)

WinWait("SAP Logon 710","")

If Not WinActive("SAP Logon 710","") Then WinActivate("SAP Logon 710","")

WinWaitActive("SAP Logon 710","")

Here is what I wan to do:

WinMenuSelectItem("Start Menu", "All &Programs" ,"SAP Front End", "SAP Logon")

Any Suggestions would be greatly appreciated

TIA

Allan

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...