Jump to content

Recommended Posts

Posted

Hi All,

 

Bit of a strange one. Does any one know of, or has made a Button (physical) that can connect to a computer (preferably linux based) via USB that when pressed will execute a shell command?

 

I've had a quick google and all I could find was the cheap 'Panic Button' toys. I'd want something similar button wise but want it to do more than open a screensaver etc.

 

Would it be possible to hack apart a USB keyboard, solder a button bought at the local electric shop to the correct part of the keyboards circuit board and somehow have that execute the command?

 

Not looking for anything solid just any ideas of how I might go about it.

 

Thanks,

 

Dan

Posted
Edugeek gave away some 'Emergency Launch Devices' at BETT a few years ago. They're just a single USB button that executes a key combination to launch the web site. They were provided by the USB Company, but they don't seem to do them anymore.
  • Thanks 1
Posted
I had a quick look a while back into re-programming the panic buttons, I think someone had managed it but can't remember how now...all they do is send key strokes ie WinKey+R, w,w,w,.,e,d,u,g,e,e,k,.,n,e,t,Enter
  • Thanks 1
Posted (edited)

Couldn't you just use some micro software to remap one of the less used function keys to do it?

 

Might be a lot easier

 

Edit : have used this for windows http://www.autohotkey.com/

Wold have thought linux would have an alternative

Edited by LiamH
  • Thanks 1
Posted

Hi,

 

Thanks for all replies, email been down at work so not getting alert emails.

 

What I did in the end was a bit of a mixture of all suggestions really. Bought a big button and little project box. I then ripped (read carefully took out the screws) open an old keyboard and found out what two contacts f8 went to and wired the button up to those.

 

Then as LiamH said I just custom keyboard shortcut f8 to run the script.

 

Job done. Works quite well too.

 

Thanks all

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...