Hello, so I am again thinking about this never ending issue - how to keep RDP session alive in a corporate environment. One way is to have some script on client side which periodically switches to RDP window, moves mouse and switches back. I have it and it works fine. I am using _Timer_GetIdleTime() in a loop and do the mouse movement only if idletime is above some time, so it does not interrupt normal work.
I wonder how is RDP session timeout checked on the server side however, because I made a script which moves a mouse and presses some key and run it inside RDP session and it DOES reset the idletimer (I show it on screen via Tooltip function), but seems like it DOES NOT prevent session from getting disconnected/logged out (depengind on your company security settings). So it seems like there is some other hidden value which controls this and it cannot be influenced by any scripting running on the server side. Am I right?
My friend has Linux and connects to windows server, so I tried to work around his RDP session logout problems form the server side, but it seems impossible.