[Request] Foreground process change event listener?
Opened this issue · 0 comments
Deleted user commented
This event listen would listen for when a user changes process windows.
The function in user32.dll is SetWinEventHook with EVENT_SYSTEM_FOREGROUND
You may also need EVENT_SYSTEM_MINIMIZESTART and EVENT_SYSTEM_MINIMIZEEND
Reference: https://msdn.microsoft.com/en-us/library/windows/desktop/dd373640(v=vs.85).aspx
I tried just using getActiveWindow in a interval, but it wouldn't run.