New software for your USB Panic Button
I have got this gadget last year with Christmas and it looks very cool but with the included software it is pretty useless. It works like a boss key and when you hit it after a short delay it displays a low res chart on your screen…
It was on my “programming-for-fun-todo-list” for a whole year to make my own software for this cool gadget. I have used Jan Axelson’s Generic HID C# example to make it work. And finally it is here: USB Panic Button.zip (Updated version 1.1!)
With this new XP and Vista compatible software you can display any picture, play any .wav file and execute any command you want even simultanously. As a bonus I have include some image, sound and command examples, a cool earthquake effect and PowerPoint next slide control. This software requires the .NET 2.0 Framework.
Enjoy! And please drop a comment…
UPDATE 2009-10-06: You can download the source code here: USBPanicButton_src.zip

Now with the USB Panic Button you can always have one at your side at work. Pedro Glass
FYI If you access the download link from the direct page,
http://www.johnbruin.net/index.php/2008/11/30/new-software-for-your-usb-panic-button/
the link points to:
http://www.johnbruin.net/index.php/2008/11/30/new-software-for-your-usb-panic-button/files/usb%20panic%20button.zip
When in-fact the download is actually located at:
http://www.johnbruin.net/files/usb%20panic%20button.zip
Your software does not actually work for me, perhaps you need to run Vista as admin? (might try it on XP and see if I have more luck)
Hi Damian, thanks for your comment. You are right, I have fixed the location of the .zip file.
I have tested my software on XP and Vista and it works on several machines. Can you please try to run it as Admin? Please let me know!
I just tested on Win XP and it works fine.
Will test on Vista again if I get the chance. (note that it was Vista 64 – bit) The app launches and is in the task bar, but pressing the “panic button” has no effect.
I just tested Vista again as Admin – still no luck in getting it to work. The supplied app on the CD works fine however in Vista 64 bit (even in non-admin)
Thats great, we have the QI Klaxon on it, don’t bother with Vista, but do try and make it work for Mac!
Great software. Are there more vbs scripts available on the web.
Would be great to have a feature that if you press the button twice (quick) that CTRL ALT DEL is sent to the computer so pc can be unlocked.
New release coming up?
Hey, me again.
I am trying to use commands with a slash in it e.g. to start a batch file minimized but it’s not picking up the slashes at all. Any way to get this fixed?
@HJ
Maybe you should use quotes in your command like this “C:\test.bat /m”
or you can always wrap your command in another batch file.
this is awesome, thanks!
works on windows server 2003
Are you going to release the source code ?
I am running twin monitors and the images do not stretch across
I’d like random sounds, could an updated versions pick randomly from a folder, or can someone write a batch for us thickys to impliment that does it. And also, could it not support MP3 as well?
Cool! Thanks a lot. I’ve just placed my panic button back on the desk after many months locked away. Now it’s useful at last!
Thanks soo much!
i’ve always thought that the standard software was pretty useless, but now i always have my panic button plugged in and i use it almost 20 times a day!!!!!
Thank you!! I just received this product in my Bag of Crap from woot, and this is awesome!!! A+
this stops working after a bit, not sure what the trigger is, but I have to shut your program and unplug the button before plugining it back in again and rerunning the exe
I’m trying to make it so that when i press the button, it will be like pressing the number 2 on the top part of the keyboard (In MAME, the 2 key adds quarters to the ROMs)
Can anyone please help me do that? it would be much appreciated!
Thanks!
I’m running 64bit Vista, and while the software runs, pressing the panic button has no effect. I’ve tried running it as Administrator, but it still doesn’t work.
@admin
Great software. Works fine on 32-bit Vista but fails to launch anything when running on 64-bit version.
Got my in a BOC from Woot, too.. this is perfect. I was gonna trash it until I found your app.. Thanks Google and John Bruin
Any chance of getting a command script that just minimizes the active window?
Thanks
I have the Panic Button but with Vista 64 I just cannot get it to work! any ideas?
make a text file with notepad, and name it “sendkey.vbs” or whatever, put this into the text file:
Dim objShell
Set objShell = CreateObject(“WScript.Shell”)
objShell.SendKeys “{backspace}”, True
Change “{backspace}” to “2″ for your purposes.
Same trick as my last reply, but instead use: “% n” instead of “{backspace}”
I tried the trick for getting it to use a hotkey (F10) but it says it says there is an invalid character in line 3. I copied and pasted just the way it was.
Its a real pity the source code is not available.
i tried the generic C# code/app it finds the button but can not get any events from it
finally worked it out, just avoid control and input/output requests and use the feature reports.
Does any kind soul have the original driver disk, i’ve lost mine over xmas and can’t get the button to work at all without it, i’m running vista 64 bit, this app looks great tho
I’m having problems with this not working on my 64-bit Vista. Does anyone have any solutions???
have uploaded original CD contents to rapidshare.
http://rapidshare.com/files/187752045/usbpanicbuttoncdcontents.zip.html
Thank you thank you thank you.
I spent 3 hours trying to find a way to get VB to access USB devices only to find out my version can’t do it. I found some source code for USB interaction and i’d get errors when I tried to open it… It looks like VB ad USB are not good bed fellows.
I don’t suppose you would post your source code
It’d give me a reason to catch up on my C#
Hey thanks for this, got the Panic Button as a novelty gift from a friend that knows I like goofy gadgets. This software makes it actually worth plugging in! =)
Thanks for this update! I wonder if you could give me the opportunity to set a default script so the customer doesn’t have to choose a file manually. This would be so nice!
Love you man, great software!!
This is exactly what I was looking for, I wanted to push a big red button to run a whole lot of code for my reports at work.
I haven’t bought this product yet, but I assume it can be set up to do one of the following once pushed:
1. Open a specific excel spreadsheet.
2. Open a specific ms access database.
or
3. Open a MDDos Batch.exe file.
These will then kick off all my code.
Personally, I use it in combination with autohotkey. I assume the author wrote this program after I posted code on kbabslive: USB Panic Button (HACKED!) Post (google: USB panic button hacked). I used Jan Axelson’s code as a base as well, and I actually released my source code.
http://www.orkey.net/bin/PanicTray.zip
binary and source code inside.
it’s called generichid because I just lazily modded the original generic hid project, but you can rename the exe to whatever you like. It will work fine.
on the command line, if you rename generichid.exe to panictray.exe you can use something like:
C:\panictray.exe somefile.exe panic
and it will auto-run in the tray listening for a button press.
An excel spreadsheet, access database, or batch file… or .ahk (autohotkey file) all work perfectly fine to “run” with this program.
Thank you so much. This thing work great. The original software dose nothing but loading a image. Instead your software really rocks! Now mu button isn’t useless anymore!
Hi John, found your blog via the MIX 10k competition. Once again, congrats on Silvertyper – definitely one of my fave entries. Oddly enough I got a panic button just this Christmas gone, and my first thought was ‘how can I hack this to make it do something useful or at least _interesting_?’
Lo and behold – you’ve done it already
Cheers John, this has probably saved me hours of searching!
First of all please excause my bad english. I’ve downloaded your very nice USB Panic Button Software and I tried to make it portable but the configuartion file is stored in the local app-directory and looks like this USB_Panic_Button.exe_Url_dzl5zpik2wdnipbqq1dk0d0wmcp10jzi. I think there are some factors that the last part (dzl5…) dependes on, because a differnt execute-path effects a different config-path (is the algorithm a secret? or is there a way to change the config path?)
THX for help
Awesome! I was so disappointed with the s/w that came with it this works great u r muh hero!
I just got my panic button from woot.com and was going to spend hours writing my own program for it. Thanks very much for saving me the time. Your program works perfectly with some nice features and the earthquake effect is worth a laugh.
WOW! Thank you for sharing this programming. I’d just purchased a USB Panic Button for fun and realized how lacking the default application was. Yours makes this thing actually usefull instead of a silly novelty.
Hello webmaster
I would like to share with you a link to your site
write me here preonrelt@mail.ru
Hi im using vista 64 like some others and cannot get this to work under any mode. It looks like a great piece of SW any chance of a 64 bit patch?
cheers my email is: dandman_66@hotmail.co.uk
Looks cool.
Is there any chance this software could be modified to support the “one touch” button found on various external USB drive enclosures?
I’m not a programmer, so I’m not sure if they are HID-compliant devices or not.
Just a thought…
JohnB
Just a follow-up to my previous post:
Like I said, I’m not a programmer or anything. But after doing a little research, it looks like the “one touch” buttons found on many external USB drive enclosures are implemented as a Generic HID device.
I assume your application is hard-coded to use the Panic Button’s ProductID & VendorID.
Would it be possible to modify your settings window so that you could set the ProdutID & VendorID to work other Generic HID devices?
JohnB
Great software! It’s most powerful that the original software!
But, I would like – if possible – to make some tweaks, can you distribute the source code ?
Thank you
Chris
my email: christouf@gmail.com
Thanks
Chris
Please make it work for 64 bit vista i have only computers with that OS…
Hi Junky, there are lots of questions about making my software available for 64 bit but unfortunately I have no 64 bit environment to test…
Yes I made it work in 64 bit version i will (when i get home from school today) upload it and get the link up here. questions how I dit it, well I used Xenocode on a 32 bit machine and virtualized it then when I run it, it works! I know the method is not the best but it works:) I’ll upload it ASAP!
well here is the link:
http://www.filefactory.com/file/agbde4f/n/Panic_Button_rar
hope it works for you 2:)
@Junky Thanks Junky! Is there anyone who can test and confirm this?
I just tested it out using a picture, sound and the Earthquake option under Vista 64-bit and it worked great! Thanks Junky!!
Could I please have the source code for this app? Pretty please?
does the software support using multiple panic buttons?
one for each cooldown in wow would look priceless
Nice, very nice. I love it. I took the button and used a script and autohotkey to launch a missile out of a usb missile launcher. Everything I used I got from http://www.woot.com
http://www.youtube.com/watch?v=RiOBCVw47qA
WOW Duncan! That is so cool! I also own a USB Missile Launcher and this combination rules! I also love your youtube movie.
thank you Junky ! It’s work on Vista64 !
I’ve got the panic button for father’s day. With your software this gadget works perfect. Thanks
This link doesn’t seem to work for me. Is the source/binary still available? Can anyone provide a link to it? Thanks!!!
Hey, that link should work now. Good luck with it!
I should note that the version I linked is my version, released before Mr. Bruin’s. It’s less polished (read: kind of a cheap hack) and the interface is more like the test app on which he based his solution. At the time I really just wanted something that would work, and unlike Mr. Bruin’s solution, it does indeed include the modified source code, and something of a debugging interface. To launch it at start, you can use a command line option as well. Something like ‘panictray.exe “C:\bin\somefile.exe” panic’ . It will start listening for a button press on startup and minimize itself to the system tray.
Great work!The software is better that the orginal one.
How did you know which vendor – and product id to use?
You can find the vendor and product id in the Device Manager
Is this software TenX chip-specific (i.e.: does it require the TenxHID.dll)? I would like to try to modify it & possibly get it to work with some other similar “panic button”-type gadgets I’ve got that are based on different chipsets.
Also, would you be able to send me the source code or make it avaialable for download? My email address is: johnbeekman@yahoo.com.
thanks in advance,
JohnB
@JohnB
I’ve written a Python application which serves a similar purpose to this application although it’s command-line based. It can either run a command or simulate pressing a certain key combination. The source code is available and you’re welcome to see if it helps you JohnB.
@ME
Was anyone able to come up with a way for the audio played to be random? I’ve got the panic button, the new executable works great, I’m just not real handy with the batch files, etc. Thanks for any help!
@awatts
Thanks, awatts. Yes, I’ve looked at your Python stuff for the Panic Button – pretty cool. Unfortunately, it’s TenX-specific.
As I said in my post, I’m trying to come up with something that will work with some similar devices I’ve got that use different chipsets (Dream Cheeky’s Stress Button & something called a USB Security Button).
Anyway, do you know if Jon Bruin’s software is TenX-specific? If it’s not, I was hoping that I could modify his source code to work with these other devices.
Any help will be much appreciated.
best,
JohnB
@Brian
@ME,
I assume you could do this by having the Panic Button trigger a VBScript (.VBS) which plays a random sound file within a specific directory.
I couldn’t find a suitable VBScript, but I did find this:
http://theessentialexchange.com/blogs/michael/archive/2007/11/15/shuffle-play-your-audio-files-with-powershell.aspx
It requires Microsoft PowerShell (similar to VBScript), and a simple open source audio player called MPlayer.
I hope this helps.
Hi John,
This looks like exactly what I need, but it will not work on my button. it appears that ine is slightlty difefrent than the one you designed the sw for.
The “test” function works fine, but when I press the button I just get the default Windows error sound. (bing)
My device is here http://www.dreamcheeky.com/index.php?pagename=product&pid=11
Can you help?
Hi John,
No my software is not TenX-specific and I think is should be not too difficult to modify it for use with other panic buttons. If you have the product and vendor id’s of your button then you can use Jan Axelson’s Generic HID example to test what happens when you click the button.
@admin
Thanks for your reply, John. Yes, I know the VID/PID’s and I should be able to use Jan’s Generic HID or some other “USB sniffer” to figure out what happens on a button press.
Would you be able to post or send me your source code so I can take a shot at modifying it?
thanks again,
JohnB
Today I have added the source code.
@admin
Thanks so much for posting the source, John. I’ll take a look at it and see if I can get it to work with those other gadgets.
Is it possible to have three rigged in to a PC and have them perform different actions? I’m thinking gameshow buzzer style.
No I don’t think that is possible BUT I have also software ready to use the PlayStation Buzz controllers on your PC.
Oh well that sounds perfect. Where can I find more information?
@Jonny I will make a post with that soon!
Is there any way to have it take commands from two buttons?
I can now startup my pc by pressing ctrl+alt+del on my keyboard.
is it possible to startup my pc with this button if I set the command to Ctrl+Alt+Del?
(don’t have the button (yet) so can’t test it)
Thanks
No Thijs, I am sorry but you have to be logged in to make this work.
Thijs, how did u get this to work…using CTRL-ALT-DEL and computer turns on.
In theory somehow it should be possible to use the button to turn on PC, USB devices still have power when computer is off
Hi,
does it also work for Windows 7?
THX for help:)
@pepe2299
Yes I can confirm that it works in 32bit Windows 7
@Junky
Can you post an alternate link (filehippo is good). Filefactory is pretty unreliable.
Thanks. Worked as a charm on Win7.
Hi,
this software bei John works damn good:)
But how can I start a game like BATTLEFIELD 2 with the USb Panic Button?
Can somebody please help me?
THX a lot
Steve
Hi,
this site is great:)
Can somebody please help me?
Is there any chance to start a game liek BF2 with the USB Panic Button?
THX all for helping me
Steve
Hey,
I’ve got a similar usb button. It’s not the panic button but a similar button. I guess it’s using the same USB info since i have found this website using the info i’ve found in the Device manager
. Í want the software to acces this button so i can try out those earthshake kind of stuff aswell. I did not buy the button so i got no software cd with it. Is there anyone able to help out?
Cheers!
hi,
i want to ask can it work in two panic buttons in one pc for different command?
Hi, no I am sorry my software only works with 1 button
Hi guys; cannot get this to work with Win 7 64 but… any chance of an update at some point?
@
admin
Which file do you modify the vendor/device ID’s in? I’m either blind or dumb I can’t find where to modify it…
John, this is incredible!
I loved my panic button, but now it not only stylish – it is very useful and much more fun!
THANKS!