473,387 Members | 1,722 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,387 software developers and data experts.

Capture keyboard input?

jamesd0142
469 256MB
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 start word etc...

i can do this using the form.keypress method when the form is selected.

But i want to capture all keyboard input when the form is not selected so if a user(me) was browsing the web, and pressed f10 it wud still start word...

is this possible?

Thanks
Oct 10 '07 #1
5 9063
Not sure why you want to write a program to do this but i think an easy solution would be to just download a program from the internet that does all these things. There are many available programs that will track all input on the keyboard and also there are programs available that can assign programs to certain keys or key combinations.
one good program that records keyboard input and is free to use is Family Keylogger. just do a search in google for "Family Keylogger". this program can also run hidden/revealed mode by pressing a combination of keys for example Ctrl+Alt+Shift+F or any combination you want.

Hope this helps.
Oct 10 '07 #2
jamesd0142
469 256MB
Yes thanks for that, no real usefull reason why i want to do this, other than gaining the knowledge on how its done.

I don't know about you but every time i run/use a program i start thinking in code (vb :)) as to how each step is done. and it annoys me when i don't know

:)
Oct 10 '07 #3
Killer42
8,435 Expert 8TB
This kind of program is known as a keylogger, and they are a favourite of hackers. Most of us spend considerable money and time trying to keep such things out of our systems, and we at TheScripts do not condone their creation or use.

Please refrain from asking about them here.


Besides, Windows already allows you to assign hotkeys to start or switch-to particular applications. You don't need a separate program to handle it.
Oct 10 '07 #4
There are plenty of legitimate reasons to capture keyboard data. I'm working on a project right now that is a perfect example. I'm working on a point of sale application that uses a barcode scanner that communicates to the OS as a USB keyboard device.

One way to capture keyboard data is to use the Windows API to set a global or application specific keyboard hook. There is nothing hacker-like about this. The API methods required are publicly documented and for good reason.

My problem is that a keyboard hook is not an ideal solution because I can't figure out how to tell which keyboard device is generating the data using this approach. Normal keystrokes coming from the keyboard look just like data coming from the barcode scanner.

Ideally, I'd like a solution that lets me capture data from the scanner and keep the current active application from seeing the data. If I can't accomplish this, scanned barcode data will show up in notepad, word, or whatever application currently is active.

Perhaps there is a way to do this with a global or application specific hook. I'm going to keep researching this. If anyone has experience with this sort of project or any suggestions I'd love to hear them.
Oct 29 '07 #5
We have a similar need. Did you find a solution?
Mar 6 '09 #6

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

Similar topics

10
by: Claudio Grondi | last post by:
German Windows 2000, SP 4 Python 2.3.4 (#53, May 25 2004, 21:17:02) IPython 0.6.10 -- An enhanced Interactive Python. Is it already known, that after switching the keyboard input scheme on...
0
by: Ray | last post by:
I have English Windows XP Pro and Office 2003 Pro on my computer. When I enter data into fields of tables, queries and forms of Access 2003, it automatically switches to Chinese keyboard input. ...
4
by: Ralf Toender | last post by:
Hi! Does anybody know how to send a keystroke C#? In C++ it's done by: keybd_event ( ... ) or SendInput ( ... ). What namespace does include this counterpart? Thanks Ralf
3
by: FabFreddy | last post by:
Hello, I'm writing a ASP.NET application. A applicatie that first was written in Basic and now i'm writting it in VB.NET, but I have one huge problem. I don't know how to get keyboard input. The...
0
by: Freddy | last post by:
In my Access db (which I have created to help me learn Greek) I am using text box controls on a form. Some of these controls require English input and some require Greek input. Currently I have...
2
by: pelletier.thomas | last post by:
Hello everybody. I'm trying to code a very little OS. But I have a problem with the keyboard input: It show thechar + "~" :s Can you help me ? The source is there :...
0
by: Srin | last post by:
Hi, I'm in the process of writing a small C# App, in which i have two groupboxes in a form. The form has the KeyPreview property set to true. The groupbox1 contains a set of labels. The second...
8
by: RJ45 | last post by:
Hello, I am writing a shell in C. I need to intercept Signals like CTRL+C or CTRL+D and set to ignore them. This is on Unix, using gcc. my goal is to avoid users escaping the shell with SIGINT...
3
by: =?Utf-8?B?cHJvZ2dlcg==?= | last post by:
I have a C# application that hosts an AxWebBrowser control which I automate by sending mouse clicks and keyboard input. I have had various problems in doing this due to a bug in the AxWebBrowser...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.