Ghastly_MIB Posted February 26, 2007 Share Posted February 26, 2007 Hey, it there somewhere an UDF or just a function to add a menu item to a menu of a extern window like paint? Just for an example: add a item called hide, and then let autoIt hide the window? Thanks, Mathijs Link to comment Share on other sites More sharing options...
herewasplato Posted February 27, 2007 Share Posted February 27, 2007 I can only offer you a free bump in the forum... [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
PaulIA Posted February 27, 2007 Share Posted February 27, 2007 Hey, it there somewhere an UDF or just a function to add a menu item to a menu of a extern window like paint? Just for an example: add a item called hide, and then let autoIt hide the window? Thanks, MathijsAdding a menu item to an external window is no problem. The Menu module in Auto3Lib can do this for you (there is even a demo that shows how to add menu items to NotePad). However, until the powers that be allow callback functions in AutoIt, there is no simple way to tell when the new menu item is clicked. Auto3Lib: A library of over 1200 functions for AutoIt Link to comment Share on other sites More sharing options...
Ghastly_MIB Posted March 1, 2007 Author Share Posted March 1, 2007 Thanks, but now I can add a menu item to the menu of the GUI. But I would like to add an item to the right click contect menu of a window. Where I can move, maximize, minimize and close a window. Like WinAMP. That program has a submenu in this context menu... Mathijs Link to comment Share on other sites More sharing options...
PaulIA Posted March 1, 2007 Share Posted March 1, 2007 Thanks,but now I can add a menu item to the menu of the GUI.But I would like to add an item to the right click contect menu of a window.Where I can move, maximize, minimize and close a window.Like WinAMP. That program has a submenu in this context menu...MathijsContext menus are like a regular menu, but they are created dynamically. That means, you have to scan for them and after you detect them, put your new menu item in. There are a host of functions in Auto3Lib, (search the A3LLibrary and A3LWinAPI files for the word "PopUp") that can enumerate context menus and return their true menu handle. If you get stuck, drop me a line in the Auto3Lib thread and I'll point you in the right direction. Auto3Lib: A library of over 1200 functions for AutoIt 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