jdelaney Posted May 11, 2018 Posted May 11, 2018 (edited) If you MUST use send or controlsend, then you MUST always run on a desktop with an active user session (as related to using the windows menu) Edited May 11, 2018 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
LCote Posted May 11, 2018 Author Posted May 11, 2018 Ok. But the winmenuselect isn't working EITHER. I'm guessing this isn't a real menu.
jdelaney Posted May 11, 2018 Posted May 11, 2018 That could be, does the spy tool see it as something else? there are other functions to interact with diff control types acting as menus. or you aren't calling the function with the proper variables. ..but that's a guess because you won't provide your attempt at it. IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
LCote Posted May 11, 2018 Author Posted May 11, 2018 WinMenuSelectItem($handle,"","&File") I tried JUST that to get the file menu to open and it failed. I wasn't deliberately not providing my attempt.
Earthshine Posted May 11, 2018 Posted May 11, 2018 (edited) nm Edited May 11, 2018 by Earthshine My resources are limited. You must ask the right questions
jdelaney Posted May 11, 2018 Posted May 11, 2018 (edited) There we go, half way there. you can add in another string for the menu sub item you want to exercise. go back and checkout my notepad example how i opened the file menu's open item. just an fyi, the function won't actually open the menu, but will do the same thing as the user clicking the menu option Edited May 11, 2018 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
LCote Posted May 11, 2018 Author Posted May 11, 2018 Earthshine, I was hoping to avoid psec because I was just starting to adjust to autoit.
LCote Posted May 11, 2018 Author Posted May 11, 2018 Right but it didn't work. The file menu never opened.
jdelaney Posted May 11, 2018 Posted May 11, 2018 And it never will. but it's not needed as long as your window comes up. ..also, i edited my comment above IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
jdelaney Posted May 11, 2018 Posted May 11, 2018 (edited) By the way psexec is just a way too remotely start your compiled script, this issue will still need to be resolved Edited May 11, 2018 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
LCote Posted May 11, 2018 Author Posted May 11, 2018 Jdelaney, I am confused. When you said that it never will, are you telling me that I won't see the things opening?
jdelaney Posted May 11, 2018 Posted May 11, 2018 (edited) You won't see the menu open/expand. what is the string of the menu item you are attempting to 'click' Edited May 11, 2018 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
LCote Posted May 11, 2018 Author Posted May 11, 2018 Basically, I am trying to click alt f and then q
jdelaney Posted May 11, 2018 Posted May 11, 2018 (edited) Please answer the question...what is the FULL string of the menu item related when you send q! Example of opening the 'Open' window in notepad...you can send alt + f, then o...but you can also do this: Winmenuselectitem ($h,"","&File","&Open...") which works in ALL scenarios. Edited May 11, 2018 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
jdelaney Posted May 11, 2018 Posted May 11, 2018 (edited) good, try this: Winmenuselectitem ($h,"","&File","Material Re&quirements Planning...") the q is underlined, yes? Edit, I had an additional space at the end of the string...remove that. Edited May 11, 2018 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
LCote Posted May 11, 2018 Author Posted May 11, 2018 (edited) Yes, the q is underlined and yes that is exactly what I had. It doesn't work. Another window should open when I do that and that window is not open. Nor is it active anywhere. I checked in task manager to see if it was just open and I couldn't see it. Edited May 11, 2018 by LCote
Earthshine Posted May 11, 2018 Posted May 11, 2018 Could you just close that process and then open the one you want My resources are limited. You must ask the right questions
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