On 3/18/2011 9:43 AM, Sean Farrow wrote:

Hi:

I need to monitor MSAA events in a c++ hosted script.

What is the best way of doing this?

Any help/example appreciated.

Regards

Sean.


One of the very best ways, depending on how comfortable you are with C++, might be the SetWinEventHook API, which is part of the native Windows MSAA support. Our MSAA event notifications are just enhancements of that API anyway, so you can save some cycles by cutting out the middle man.

If you want to do it using the Window-Eyes MSAAEventSource object, you handle them just like any other events; the sample scripts at https://www.gwmicro.com/App_Central/Developers/CPP/Script/ both monitor the Application.OnQuit event. The MSAA events are similar. They will have parameters, however, so you might have to dig into the meaning of the parameters to IDispatch::Invoke a little more closely.


Reply via email to