brock Posted May 30, 2008 Share Posted May 30, 2008 Hello;Stats: SciTEVersion 1.75XP Pro Relatively new to AutoitGoal: 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 appreciatedTIAAllan Link to comment Share on other sites More sharing options...
Zedna Posted May 30, 2008 Share Posted May 30, 2008 WinMenuSelectItem("Start Menu", "All &Programs" ,"SAP Front End", "SAP Logon")Any Suggestions would be greatly appreciatedI think the simplest method would be to use Run('full path to your EXE or LNK file') instead of WinMenuSelectItem() in this case. Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
brock Posted May 30, 2008 Author Share Posted May 30, 2008 I'll try that but ths SAP this is giving me grief thanks again ab Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now