Scrubby Posted March 30, 2007 Posted March 30, 2007 Hi All, I'd like to automate closing down SciTE with a script by clicking on the File|Exit menu.. or any items on the file menu for that matter.... When I hover over it with Au3Info, it doesn't return a control ID or classname for that control. (I don't want to use key strokes...) I've successfully automated it in the past using auto3Lib and accidentally deleted that script So was wondering if anyone could quickly remind me which functions in the auto3Lib actually work with Menus like this.. thanks! Scrubby
Scrubby Posted March 30, 2007 Author Posted March 30, 2007 Why not WinClose? Because I'm not actually trying to close the editor as much as I'm trying to figure out how to drive the menus. I want to be able to select any item on the menu, but without a control id or classname I can't use the traditional methods. I've done it successfully in the past using functions in auto3Lib where I select the HWND of the window and then the indexes of as many child pop ups as I want, I just can't find that function, I was hoping someone else here knew how to do it!Thanks!Scrubby
Scrubby Posted March 30, 2007 Author Posted March 30, 2007 Because I'm not actually trying to close the editor as much as I'm trying to figure out how to drive the menus. I want to be able to select any item on the menu, but without a control id or classname I can't use the traditional methods. I've done it successfully in the past using functions in auto3Lib where I select the HWND of the window and then the indexes of as many child pop ups as I want, I just can't find that function, I was hoping someone else here knew how to do it!Thanks!ScrubbyI see it isn't easy for others either I'll keep plugging away at this, I know it can be solved!Scrubby
Scrubby Posted March 30, 2007 Author Posted March 30, 2007 I see it isn't easy for others either I'll keep plugging away at this, I know it can be solved!ScrubbyK I figured this out, took me all day, but I got it! I was missing the handle to the file menu. I finally found the function that gets that for me. It's called _Menu_GetMenu($hwnd). Once I had that, it was a simple plug into the _Menu_ClickItem function call in the Auto3Lib library and I was up accessing menus! Yeah!!!Aaron
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