Jump to content

Recommended Posts

Posted

Hi,

I'd like to operate on context menu in another application. but I don't know how to get the handle of context menu.

Currently, we only have _GUICtrlMenu_GetMenu() to get application menu.

Could you help me?

Thanks!

Posted

From help:

Remarks

_GUICtrlMenu_GetMenu does not work on floating menu bars. Floating menu bars are custom controls that mimic standard

menus, but are not menus.

Posted

I'd like to operate on context menu in another application. but I don't know how to get the handle of context menu.

What does it look like in AU3Info.exe, the AutoIt window info tool?

:)

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Posted

What does it look like in AU3Info.exe, the AutoIt window info tool?

:)

Hi,

AutoIT window info tool can't find the handle of context menu.

And I find may be this api FindWindowEx can solve the problem.

FindWindowEx( NULL, NULL, MAKEINTATOM(0x8000), NULL );

0x8000 is the atom for a menu class. When an application calls this function, the function checks whether a context menu is being displayed that the application created.

But I don't know how to use MAKEINTATOM in autoIT.

I also search the this problem in this forum. there are some preson have asked these problems,but no one get the right answer.

I expect that I can get the answer.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...