Winautomation bots can not run smoothly on VPS

asimovgxj

Junior Member
Joined
Oct 13, 2011
Messages
198
Reaction score
29
Hey guys,

Just wondering whether there's Winautomation gurus here... Recently I created a bot on my VPS using Winautomation. When I run the bot with the window of Remote Desktop Connection opened, it run smoothly. But after I closed the RDC ,the bot failed to run and got error messages such as 'failed to get window','failed to click element in window'.

I guess it's the closing of RDC that lead to missing of mouse and keyboard on the VPS cos there were some mouse actions reg. the bot.How can I settle it down and make the bot run after closing of RDC?

Thanks in advance.
 
I know that a straightforward solution for the specific problem is to use TeamViewer.

You also need to make sure that the Windows' settings do not include autologging off after a period of idle.
 
What are you automating on a VPS that needs Windows automation?
 
I know that a straightforward solution for the specific problem is to use TeamViewer.
You also need to make sure that the Windows' settings do not include autologging off after a period of idle.


Thanks for your input but I guess it doesn't matter whether I use TEAMVIEW or not. I need the bot to run automatically everyday on the vps without getting TV or RDC connection.

And it's not about autologging off either. I tried to minimize the RDC window instead of closing it but the bot still threw error message like "failed to get window" "failed to click element in window".
 
Last edited:
What are you automating on a VPS that needs Windows automation?
I need the bot to visit a webpage ,download the video from the page and then change the name of downloaded video and upload it to my youtube channel. It's kind of a routine daily job.


may be something got to do with the settings on VPS that's causing problems, have you checked the logs.

Yes I guess it's something related to the VPS. Do you mean the logs of the bot? How to check it? I'm running an .exe file of the bot, don't know how to check the log for it.
Strange! The bot keep throwing 'failed to get window(firefox browser)' 'failed to click element in window(firefox browser)' after I close the RDC window or after I minimize the RDC window! When I get the RDC window open on my desktop, the bot always work perfectly!
 
I know that a straightforward solution for the specific problem is to use TeamViewer.

You also need to make sure that the Windows' settings do not include autologging off after a period of idle.

I'm wrong,you're right. The point to use TeamViewer is not to active the rdp-tcp session that will be triggered by RDP window.

If the rdp-tcp session is not triggered, then the VPS is always controlled by the session of console which offers a persistent active session for the bot. Then the bot will not fail as before when I disconnect RDP which leads to non-interactive of the rdp-tcp session.

Thank you! You're genius!
 
If you use actions in ui/window category of winautomation, your tasks will always pop up error if your session expires. To avoid these scenarior i always try as much as possible to avoid the actions in those category. The easiest way out is to use two RDP, one of the RDP will be used to login to the second RDP in which the winautomation script is going to automate tasks. These will ensures the second RDP sessions never expires even if you logout from the first RDP
 
Back
Top