Sign in to follow this  
Followers 0
Ghastly_MIB

Add menu item to window

5 posts in this topic

Hey,

it there somewhere an UDF or just a function to add a menu item to a menu of a extern window like paint?

post-5563-1172527720_thumb.jpg

Just for an example: add a item called hide, and then let autoIt hide the window?

Thanks,

Mathijs

Share this post


Link to post
Share on other sites



I can only offer you a free bump in the forum...


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

Hey,

it there somewhere an UDF or just a function to add a menu item to a menu of a extern window like paint?

post-5563-1172527720_thumb.jpg

Just for an example: add a item called hide, and then let autoIt hide the window?

Thanks,

Mathijs

Adding 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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Context 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

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