Your window needs to get the list of all other windows, find the one directly below it, and send a mouse click programmatically, using something like accessibility API.
Are you writing a keylogger?
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments