Hi,
I developed a robot that downloads a file report from a website. The bot starts via Orchestrator, on a Botrunner installed on a server.
I need to launch it with RDP window minimized. I made a test and all activities are performed except “send hotkey”, when the bot try writing the file path.
There is a way for the bot to type keys without selecting an element and without selecting “use focused element”? I need a third option, only press key.
@daniele_arcangeli What is the use case here? As i understand ‘Send Hot key’ is not working as expected while writing the file path. Are you not able to pick the element (where you need to enter the file path)?
Hi @Muhammad_Hayyan, yes i’m using Send hotkey from GUI activity!
Hey @Kudlappa_Gouder, i’m able to pick element but if i close the rdp session i got this message:
Selectors: There is no screen on machine. May be RDP session is closed or minimized. If the issue persists, please refer to Help Center to make sure the activity Help Center to make sure the activity ‘Click on element’ was set up correctly.
I set “use focused element” to get around this problem but I have the same error.
Since it only has to press ctrl + v, is it possible not specify the “focus”?
I actually launch my bots in a remote PC. I needed to lauch them even with the closed window. I realized that the remote PC blocks itself when I close the RDP window so I searched for a solution and the only one that work for me was creating a .bat file with the next code:
for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do ( %windir%\System32\tscon.exe %%s /dest:console )
And then run it as administrator. The remote session will disconnect but your remote PC is still active and ready to run your bots. I suggest you to run this file every time you are not using your remote PC.
Hi @daniele_arcangeli, We would like to find out if the solutions we provided above worked for you. If they did, remember to mark the post that worked for you as the solution. If not, please reply in this thread with how you resolved it. That will be much appreciated.
Just like @RODPOLUEN said, the .bat file should be inside the remote server, and should be executed right before the bot is launched via the Orchestrator.
Let us know if this works! If it does, you can mark @RODPOLUEN’s answer as a Solution.