1

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).

user42467
  • 1,941
  • 1
  • 13
  • 8

2 Answers2

1

I have never found a clean way to get notified. I use GetForegroundWindow with a timer. :(

Martin Plante
  • 4,553
  • 3
  • 33
  • 45
  • I know this post is really old but I'm just dropping a comment to a similar post that arrived at a different conclusion: http://stackoverflow.com/questions/4407631/is-there-windows-system-event-on-active-window-changed – HK1 Mar 16 '11 at 11:51
0

You can't but you might want to try something someone has already created like this product.

joegtp
  • 712
  • 6
  • 17