A simple script for Windows that:
- Places a VM window in foreground
- Waits for a signal from the VM
- Finds the window that had focus before the VM
- Hides the VM window
- Switches to the window found in step 3
This is most useful for fullscreen VMs, but it will work with pretty much any regular window.
Typically, the user should configure this script to be run in the host via a shortcut in the taskbar, or via a keyboard shortcut.
On the VM side, the guest OS should have an easy way to connect via TCP as a signal for toggling back to the host OS when requested.