Know if user clicks out of VM

Discussion about using the VirtualBox API, Tutorials, Samples.

Know if user clicks out of VM

Postby pmwhitener » 20. Mar 2018, 18:26

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
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

Postby noteirak » 20. Mar 2018, 18:27

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://kamax.io/hbox/
Manage your VirtualBox infrastructure the free way!
noteirak
Site Moderator
 
Posts: 5198
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7

Re: Know if user clicks out of VM

Postby pmwhitener » 20. Mar 2018, 22:07

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.
pmwhitener
 
Posts: 9
Joined: 5. May 2009, 18:38
Primary OS: OpenSolaris 11
VBox Version: OSE other
Guest OSses: win, debian, ubuntu


Return to The VirtualBox API

Who is online

Users browsing this forum: No registered users and 1 guest