Skip to main content

Is there a way to run a bot on a VM without it constantly failing because you don’t have the window specifically in focus? Have turned the clipboard off when signing into the VM, but if I minimize the window, if the screen goes to sleep, if I close the VM window after running a development bot or don’t have the VM window maximized and in focus it ALWAYS fails. If I keep the window open and in focus it will run just fine. I do have multiple screens. I need to be able to multitask without sitting there watching a bot run during development, as some runs can take an hour or more. Thanks for any tips!

Can you resize the window instead of minimizing it? I’m not sure which VM engine you’re using and how that would affect the operation of your automation. Maybe use Windows 11’s “New Desktop” feature and put the VM on that other desktop?


Can you resize the window instead of minimizing it? I’m not sure which VM engine you’re using and how that would affect the operation of your automation. Maybe use Windows 11’s “New Desktop” feature and put the VM on that other desktop?

Using the capture action in some areas, so I cannot really resize the window without issues. Currently using Windows 10, not 11. 


It looks like Windows 10 has multiple desktops too.

https://www.windowscentral.com/how-use-multiple-desktops-windows-10


So I would use that on the local machine or the VM that bot runner is using?


You would do that on the local machine. It’s essentially like a second monitor that you can drag your VM onto. That would prevent you from having to minimize the window to do other things on your computer. You could always switch to that other desktop to check the VM’s progress too.


Let me test that, not something I’ve done before. Will report back.


I tried it using Oracle VirtualBox on my machine. Here’s my desktop 1 (on my second monitor):

And here’s desktop 2 (on my second monitor), running VirtualBox and Windows Server:

I hope you have the same success I did.


That worked Aaron, appreciate the assist sir!


Reply