
NetMage
308 discussion posts
I'm not sure how you could add this (easily), but I am wondering if you could add some type of Window Hook event to BFS so that a trigger (such as Window Created) could setup a Window Hook for the new Window, calling a C# function and then modifying/capturing Window events.
What types of window hooks and events are you trying to capture?

NetMage
308 discussion posts
A generic Window Hook that captures all Window events would be nice (imagine implementing Spy++), or maybe one with some type of class filter would be fine. Perhaps something like SetWinEventHook or SetWindowsHookEx? Something like a simplified version of SpyWorks perhaps?
Imagine I was trying to convert minimize button right-clicks to be Minimize to Tray :D
I would want to look for a WM_NCRBUTTONUP message with a HTMINBUTTON wParam and call Minimize to Tray.
Unfortunately many of these hooks require native DLLs, not the managed code that the scripts run in. It's a very powerful idea though, we'll keep in mind if we can come up with a safe way to do this in the future.