Sign in to follow this  
Followers 0
brock

Windows menu Selector

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Any Suggestions would be greatly appreciated

I think the simplest method would be to use Run('full path to your EXE or LNK file') instead of WinMenuSelectItem() in this case.

Share this post


Link to post
Share on other sites

I'll try that but ths SAP this is giving me grief

thanks again

ab

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