|
Hi all,
I'm a video editor and my software of choice is Avid Media Composer. I was recently moved to try to add some personal enhancements to Avid's keymapping system which in places is somewhat wanting. Media Composer has a Window called Audio Mixer in which there are a series of buttons (though not windows buttons). I'm using Windows Hooks to try to intercept a keypress and spoof a keypress on the buttons in the Audio Mixer window.
My thought was to use the Win32 SendMessage function to send an WM_LBUTTONDOWN and WM_LBUTTONUP with the appropriate x and y positions in the Audio Mixer window. Using a similar method I can, for instance, fake a press of the Windows Start button. However, this method doesn't seem to work with the Audio Mixer window. I get no response at all from the UI. [as an aside when I do it with the Start button watching the Start button messages with Spy++ I cannot see the WM_LBUTTONDOWN message I send to the button. Is this normal? Why is it?]
Being an editor, I'm not the greatest programmer in the world, so am not completely au fait with win32 calls. I've tried using both SendMessage and PostMessage and neither seem to be doing anything. Without being able to see the messages in Spy++ or any UI feedback it's not clear what is going on, or indeed what to try next. Can anyone give me some pointers? By the way I'm hooking the WH_MOUSE_LL hook.
Steve
|