Answer the question
In order to leave comments, you need to log in
Why doesn't Windows create a window handle when RDP is minimized?
Good afternoon!
I use a toolkit based on AutoIT and directly WinAPI for automated work with a Windows application through its GUI. I ran into a problem, let's say I connect via RDP to a remote machine, run a script on it and it starts working with the application (click buttons, open windows, etc.), all work is based on the fact that we know the window handle and I'm with it I work by sending messages to the window via WinAPI (for example, using the SendMessage function), but as soon as I minimize the RDP connection window, then on the remote Windows machine it stops giving the handle of the window with which the robot works. A similar situation occurs when the RDP window is open and everything works correctly, but after 15 minutes of inactivity, the parent OS (through which I open the RDP connection) turns off the display and blocks the account (we have such a security policy).
The question is, is it possible to somehow configure Windows so that it always gives the window handle, even if the monitor is turned off and the parent OS is in sleep mode (the remote machine is running at that time).
Answer the question
In order to leave comments, you need to log in
Why Windows does not create a window handle when RDP is minimizedBecause there is no window.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question