Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Panic Button input device - how to..

Reply
 
Old 09-29-2009   #1 (permalink)
Fred Heida


 
 

Panic Button input device - how to..

Hi,

I have a USB Panic Button device.. but how i can now from my program
interact with this device? i.e how or what do i need to register for to get
notified when the 'button' gets pressed??

any help appriciated!

Regards,
Fred



My System SpecsSystem Spec
Old 09-30-2009   #2 (permalink)
Gregory A. Beamer


 
 

Re: Panic Button input device - how to..

=?Utf-8?B?RnJlZCBIZWlkYQ==?= <Fred Heida@newsgroup>
wrote in news:3731A960-48FF-4E7B-B3B8-F0CA1EA4CF80@newsgroup:
Quote:

> Hi,
>
> I have a USB Panic Button device.. but how i can now from my program
> interact with this device? i.e how or what do i need to register for
> to get notified when the 'button' gets pressed??
>
> any help appriciated!
In general, you need to discover if the device is hooked up before you
can handle input from the device. Worst case here is checking the
registry.

Assuming you have already conquered the above, you need to know what the
device actually sends to the computer. This should be found in the
manual that comes with the device.

Most likely, you are either a) waiting for an event to happen (and the
device most likely has a driver that raises the event) or b) you are
listening for input on a specific port (serial port emulation, most
likely).

In each of these cases, the Panic Button manufacturer should be able to
guide you to how the button works. If you can find this information and
post it, someone can tell you what to do in .NET. If not, we are all
just shooting fish in the dark.

peace and grace,



--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
My System SpecsSystem Spec
Old 09-30-2009   #3 (permalink)
DickGrier


 
 

Re: Panic Button input device - how to..

What information did you get from the manufacturer of the device? In
general, there would be an API furnished with it, if they intend that you
interact with it from programs that you write. Some devices that install as
HMI (you can view your actual installed device via Device Manager in Control
Panel) might also be candidates, even if the manufacturer provides no
information. However, there isn't a "one-size-fits-all" answer.

Dick

--
Richard Grier (Microsoft MVP - Visual Basic) Hard & Software 12962 West
Louisiana Avenue Lakewood, CO 80228 303-986-2179 (voice) Homepage:
www.hardandsoftware.net Author of Visual Basic Programmer's Guide to Serial
Communications, 4th Edition ISBN 1-890422-28-2 (391 pages) published July
2004, Revised July 2006.

My System SpecsSystem Spec
Old 09-30-2009   #4 (permalink)
Fred Heida


 
 

RE: Panic Button input device - how to..

Hi Gregory and Dick,

thx for your response.
I should have indeed looked a bit closer on the cd and notice the dll
TenxHID.dll

i found a good artical on http://pastebin.com/f3de7bfa6
that described the calles the can be made.

Cheers,
Fred

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Change width on INPUT TYPE="Button" VB Script
VISTA64 Media Center Compatible SVideo Input Device Vista hardware & devices
Microphone or Sound Input Device Problem Vista hardware & devices
pci input device Vista General
no audio input device discovered when microphone jack is connected Vista music pictures video


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46