jasdak
asked on
How to use an external hardware button trigger an event in windows
i have a physical, hardware button mounted on the outside of our business, next to our front door. is there any way i can connect it to a windows computer so that every time it is pressed it appends the date and time to a text file? i can do all the programming either via batch file or visual basic but i do not know where to start interfacing a physical switch to a windows computer. is there some way to do it via serial, usb, parallel? any help would be great. thanks!
You could use the MSComm control and raise/lower DTR to fire an event. It's just a matter of the button shorting the correct pins on the serial port when the button is pressed. If interested I can give you the pinouts.
since the distance is long, maybe a direct switching is not recommended, you can use a relay to make switching phisically near to the computer.
ASKER
treyH,
i would like the pinouts and any url's that you know that may give me some tips, syntax, code snippets, etc for implementing this solution. THANKS!
i would like the pinouts and any url's that you know that may give me some tips, syntax, code snippets, etc for implementing this solution. THANKS!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Superb, Excellent, Above and Beyond! THANK YOU!