0

I'm sending mouse down signal (for left or right button) to an external application. And if in the result of this action any type of menu or child window is created I want to get it's handle.

How can I do something like this?

And is it possible to detect the fact that application is about to open menu prior to the fact of opening the menu?

Stvad
  • 360
  • 2
  • 17
  • [Spy](http://stackoverflow.com/q/4038730/1997232) does that. Search for `c# spy handle` (e.g. [here](http://stackoverflow.com/q/1967604/1997232)). – Sinatr Jun 26 '15 at 13:00
  • So to perform EnumChildWindows looking for windows with class #32770 and #32768 after click would be enogh to capture any menu/child window? One more thing - is it possible to detect the fact that application is about to open menu prior to the fact of opening the menu? – Stvad Jun 26 '15 at 14:36
  • Use [hook](http://www.codeproject.com/Articles/38523/How-to-Write-a-Managed-Global-Hook-for-Window-Crea) (for `WM_CREATE`). – Sinatr Jun 29 '15 at 09:00

0 Answers0