MotionLock - disable dvd while moving
Here's a little plugin that controls access to certain functions while the vehicle is in motion.
Currently it works off GPS, but the plan is to be able to use either GPS or e-brake switch. I'm thinking maybe use the game port for simplicity of hardware, just connect the ebrake switch as a joystick button.
The plugin intercepts commands based on the config file, and redirects to a 'denied' skin.
It also restricts access based on the skin, so if you're watching a DVD while stationary, the plugin will close it when you start moving.
The config file looks like:
Mode is not used, just a placeholder for when a hardware switch is implemented
skins=external_DVD.skin video_player.skin windvd_player.skin
Speed is the max speed consider as 'stationary' - anything over that and access to the configured commands/skins is blocked
cmds is a list of commands to block while moving, space seperated
skins is a list of skins to block, space seperated again.
To use this plugin, extract MotionLock.ini to your RoadRunner dir, extract motionlock_denied.skin and motionlock_denied_*.jpg to your skins directory, and wherever you save MotionLock.dll to, don't forget to to regsvr32 MotionLock.dll
to load the plugin, add the following line to your menu.skin: