Page 1 of 1

Know if user clicks out of VM

Posted: 20. Mar 2018, 18:26
by pmwhitener
Greetings all,

I work at a university and we are looking to deploy Jupiter Toolbox in a VM, and use it to test students with. The question is: Is there a way to determine, through the API or CLI of VBox, if a user has clicked out/off of the VM window? The goal being to make sure they do not go to a browser or anything else on the host machine. We would like to open the VM full screen with the min/max capability removed and only have it close when they shutdown the VM.

thank you in advance for any help you may offer!

/paul

Re: Know if user clicks out of VM

Posted: 20. Mar 2018, 18:27
by noteirak
You wouldn't do it using any of the VirtualBox API - you would do it by having a software on the host, hook into the system and know what window is currently active. you would then check if the window is the VM one or not.

Re: Know if user clicks out of VM

Posted: 20. Mar 2018, 22:07
by pmwhitener
thanks for the reply. Yes, I know we can build a wrapper but we deal with Macs and Win and would prefer not to have to maintain both.