Know if user clicks out of VM

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
pmwhitener
Posts: 9
Joined: 5. May 2009, 18:38
Primary OS: OpenSolaris 11
VBox Version: OSE other
Guest OSses: win, debian, ubuntu

Know if user clicks out of VM

Post 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
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Know if user clicks out of VM

Post 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.
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
pmwhitener
Posts: 9
Joined: 5. May 2009, 18:38
Primary OS: OpenSolaris 11
VBox Version: OSE other
Guest OSses: win, debian, ubuntu

Re: Know if user clicks out of VM

Post 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.
Post Reply