Checking if the sessions the application is running in; is active or not

4 views
Skip to first unread message

Nick A

unread,
Jun 13, 2013, 9:29:51 AM6/13/13
to cassi...@googlegroups.com
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

Dan Ports

unread,
Jun 14, 2013, 8:33:43 AM6/14/13
to cassi...@googlegroups.com
I don't know of an API for this, unfortunately. The closest you can get with the RDS API is checking the status (active, disconnected, etc.) and idle time of a session. Perhaps there is a way to do this using a Windows device API to query monitor information -- I'm not sure.

Dan


Nick

--
You received this message because you are subscribed to the Google Groups "Cassia Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cassia-dev+...@googlegroups.com.
To post to this group, send email to cassi...@googlegroups.com.
Visit this group at http://groups.google.com/group/cassia-dev.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages