i'm using a certain program that has a multitude of windows and each and every one of those windows might steal focus at certain times (mo开发者_运维百科stly when they open). i would like to prevent a specific window from stealing focus when it opens (and also at other times, but that's less important and i can probably figure it out on my own if i'm given the solution for the main problem). i would like doing it in C# but any other programming language is probably good as well.
This is a recurring and old question.
Raymond Chen addressed it on his blog a while ago:
Link
Essentially, it just ends up being an arms race.
精彩评论