473,395 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How do I capture the Keyboard Emulation?

103 100+
I am creating an application in c# that will take the response sent from a swipe card reader and place it in a variable. If I open notepad and swipe the card, the data is sent to note pad. I would like help in with capturing that data into a variable. Someone had recommended using Window Hooks, but that is beyond my skill level (unless you can explain how to). The card reader is USB powered. Please help. I have been reading and searching for two weeks and all the things I have found are not very helpful to a newbie to component reading. Thanks in advance!
Sep 6 '11 #1

✓ answered by GaryTexmo

Honestly, Window Hooks would have been my suggestion too. I know you can launch a Notepad instance using the Process class and interact with it at a higher level, but you can't access anything specific.

For using the hooks, have a look here:

http://www.codeproject.com/KB/cs/globalhook.aspx

This article provides a library that you can use and explains how to use it.

1 3117
GaryTexmo
1,501 Expert 1GB
Honestly, Window Hooks would have been my suggestion too. I know you can launch a Notepad instance using the Process class and interact with it at a higher level, but you can't access anything specific.

For using the hooks, have a look here:

http://www.codeproject.com/KB/cs/globalhook.aspx

This article provides a library that you can use and explains how to use it.
Sep 6 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: chewie | last post by:
Does anyone know how to capture keyboard scan codes using C#? Thanks
0
by: John | last post by:
I used GetMessage() to capture the VK_ Message, but false. how to capture the Keyboard message?
4
by: teddysnips | last post by:
I posted yesterday about a project I'm involved in to build a login application using a barcode scanner. I've solved most of the problems, but one remains. The client want to disable keyboard...
16
by: dfaber | last post by:
Hi all, I have been searching for a keyboard and mouse tracker on linux. I've read solutions (watch at sourceforge) which look at /proc/interrupts to check keyboard or mouse activity. I also read...
1
by: Henry | last post by:
I have a listBox on my form. When the listBox has focus I want to respond to certain keyboard shortcuts like Ctrl+A that is used to select all contents as in Word, but I want to apply this to the...
2
by: TC | last post by:
Hello, I need to build a very simple text editor. The requirement is that the input screen should be divided into 'm*n' cells ('m' rows, 'n' columns, with each cell of a fixed size). Whenever...
5
jamesd0142
by: jamesd0142 | last post by:
hi guys i want to create a form which runs in the background which is not visible... so far so good... now... how can i get it to capture all keyboard input, so that i can say if f10 is pressed...
9
by: Peter Blues | last post by:
I'm trying to write from keyboard input to a txt file. I don't understand why the while loop below doesn't achieve this. I.. 1: open the file for writing through FILE pointer outstream 2: I get...
1
by: scudsong | last post by:
I override ProcessCmdKey() in my MDI parent form class and have some keyboard shortcut calling method in same class. But I wish to make these hotkeys working in parent/child form and other form. The...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.