I created an easy way to enable/disable one of the mice attached to my computer. When VirtualBox is running, that mouse is captured within VB (for my daughter to play with). However, when VB isn't running, I don't want that mouse interfering with my mouse, so I created a batch file to enable and disable it using Microsoft's devcon utility. Unfortunately, the legal way to get it is to download the huge WDK (Windows Driver Kit).

My wife's new HP Envy, which has Windows 8.1, doesn't have a way to disable its touchscreen or touchpad. So I wanted to use a variatoin of my script to do that as well. (In the end, I got the script to work for the touchscreen, but not the touchpad... which is run by a different kind of driver so needs a different method).

Under Windows 8, this worked in a simple batch file:

    devcon.exe enable "USB\VID_046D&PID_C501"

 

I did not even need to elevate to admin priveleges for that to enable/disable the mouse.

I updated to 8.1 last night and the batch file stopped working. Using the same batch file, devcon SAYS it enabled the device (below), but the mouse was actually NOT enabled if I tried to move it around (and vice versa if I enabled it in Device Manager and then tried to disable via devcon... it did not disable). I could enable/disable perfectly fine in the Device Manager GUI.

    USB\VID_046D&PID_C501\5&3514F6C9&0&1                        : Enabled
    1 device(s) are enabled.

 

I made sure I was using the x64 version of devcon on my x64 Windows 8.1. I tried doing it as elevated to admin rights as well as not elevated (both for the batch file and devcon itself). I also tried it in a few different compatibility modes.

I googled and googled and did not find anyone else having an issue with devcon on 8.1 and all of the example I saw matched what I was already doing.

I decided to read through the help screen again, and I saw the restart command. Once I put it after the enable/disable command, it started working. Finally.

    devcon.exe enable "USB\VID_046D&PID_C501"
    devcon.exe restart "USB\VID_046D&PID_C501"

 

The restart command requires elevation to admin rights. So I created two shortcut files to the batch file (one to enable and one to disable) and set the shortcuts to run as administrator. And then I use the shortcuts to run the batch file.
 
Tags

Timer

The timer can count up from a time in the past or count down towards a time in the future.

The timer's appearance and the format of the time (and text) is very configurable. You can hide it's border, it's background, set the color and glow effects.

Sound Recorder

This is a simple recorder that records directly to an MP3 file. Recording can be paused and resumed.

The recording window has a compact mode and can be set to stay on top of other windows, so it can be out of the way, yet still visible.

When done recording, you can playback the recording or upload the file to an FTP site.

Download

RocketDock with multiple bars\docks

It seems there is plenty of interest about how to make RocketDock work with two or more docks or bars. Most answers say to use additional docking programs--one for each dock you want. Or use a commercial program that offers multiple docks. I think RocketDock is excellent except I want more than one. I finally figured out how to do it!

Let's first point out that RD is licensed under the Creative Commons license and it explicitly says "You are free... to Remix--to adapt the work." And also to redistribute.