Forum Admin is this legit?? This guy only has one post? I hope it is
I was looking for solution of this problem, too. Using search engine, I found this thread on this forum. There was no solution here. Therefore I decided to provide mine, so I needed to make an account on this forum.
I use Teamviewer to connect to my home computer. That computer runs automation script, which emulates mouse clicks in active window using AutoIt3 script.
When I disconnect from my home computer via Teamviewer, "Sponsored session" Teamviewer's nag screen becomes active window. Because it's a nag screen, it appears as a topmost window and forces itself to become active window. My automation script gets broken at this point and I need a solution.
Using AutoIt3, I created a script (which is compiled in a background application). This script runs in a system tray near clocks and waits for Teamviewer nag screen window to become active. When this happens, script emulates pressing of keyboard's "Enter" key. This makes nag screen to go away as if real user has pressed "OK" button.
As for compiled script (.exe application): I myself wouldn't run any exe which is not made (or approved) by a well-known and respectable member of this forum. That's why I provided the AutoIt3 script source code which you can compile by yourself. Just google "AutoIt3", install and compile exe-file by yourself.
I hope this will be useful for you. Thanks for attention.