Class WinEventHook
The WinEventHook can register handlers to become important windows events This makes it possible to know a.o. when a window is created, moved, updated and closed. Make sure you have a message pump running (WinProc), otherwise the behavior is sporadic / none.
Inheritance
System.Object
WinEventHook
Namespace: Dapplo.Windows.Desktop
Assembly: Dapplo.Windows.dll
Syntax
public static class WinEventHook : object
Methods
| Improve this Doc View SourceCreate(WinEvents, Nullable<WinEvents>, Int32, Int32)
Create a WinEventHook as observable
Declaration
public static IObservable<WinEventInfo> Create(WinEvents winEventStart, WinEvents? winEventEnd = null, int process = 0, int thread = 0)
Parameters
Type | Name | Description |
---|---|---|
WinEvents | winEventStart | WinEvent "start" of which you are interested |
System.Nullable<WinEvents> | winEventEnd | WinEvent "end" of which you are interested |
System.Int32 | process | |
System.Int32 | thread |
Returns
Type | Description |
---|---|
IObservable<WinEventInfo> | IObservable which procudes WinEventInfo |
WindowTileChangeObservable()
Create an observable which only monitors title changes
Declaration
public static IObservable<WinEventInfo> WindowTileChangeObservable()
Returns
Type | Description |
---|---|
IObservable<WinEventInfo> | IObservable with WinEventInfo |