How can I get notifications about what is the currect active window and when this changes without polling GetActiveWindow or using global hooks?
I don't like polling, and I'm working in C# and global hooks don't work (mostly).
How can I get notifications about what is the currect active window and when this changes without polling GetActiveWindow or using global hooks?
I don't like polling, and I'm working in C# and global hooks don't work (mostly).
I have never found a clean way to get notified. I use GetForegroundWindow with a timer. :(
did you get anywork around for getting active window handle without using a timer? I am also trying to digg the same issue but no success yet.