Reputation: 1
I have an AWS EC2 RDP running Windows 10. I have installed a keyboard mouse recorder which repeates my activity and I want to run my recorded activity endlessly. But this works fine till I am connected to Remote Desktop Session. But whenever I close Remote Desktop connection. The software process stops as well.
Upvotes: 0
Views: 1472
Reputation: 624
Try add this bat script and call it as first thing on your script that simulate human. I've used this on my python script and it works fine.
for /f \"skip=1 tokens=3\" %%s in ('query user %USERNAME%') do (
%windir%\\System32\\tscon.exe %%s /dest:console
)
It will close your RDP connection but keep alive windows session.
Upvotes: 0