I have an application running in an RDP session via Remote Desktop Manager. (RDM)
So for example, I have 4 sessions open and in one of those sessions (e.g session 2) my application is running.
Now; when I switch to session 1/3 or 4 via the RDM; my session doesn't have the focus anymore.
Problem now is that some actions of my application don't work anymore; for example creating a screenshot fails because 'nothing' is visible.
When I activate it again; it works.
When having open the 4 sessions in individual RD connections and leaving them open it's no problem.
But when you minimize it; it doesn't work either.
Is there an API to know if the session has focus or is hidden/minimized?
Then at least I can log that the RDP session wasn't active.
I need to capture screenshot & copy logs from test systems if something fails but in this case I can't create the screenshot. :-/
Thanks!
Nick