473,403 Members | 2,323 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,403 software developers and data experts.

Hooking the Keyboard and redirecting keystrokes

Ok... so call me crazy, but I have an idea and I'm looking for where to
start...

I want to write an application that catches keystrokes and then either
redirects them to the in focus window or another window based on some
simple rules... in some cases the keystrokes would need to be sent out
to multiple windows.

I've done part of this in the past using a C++ application to hook the
Win32 keyboard API and dispose of unwanted keystrokes (Specifically a
windows key killer). But since I've never tried to go on and send
those keys to a final destination I figured I'd ask for some help on
where to start.
>From what I see SendKeys isn't suited for this as it requires the app
to be focused to receive input...

Thanks,

Zanthor

Jan 23 '07 #1
1 3724
As mentioned in the original post SendKeys isn't appropriate as it
requires focus. I need to send input to non-focused applications. Any
other ideas?

Thanks,

Will
RizwanSharp wrote:
System.Windows.Forms.SendKeys.Send(...);
Should help You.
But for this to work you need to activate the window to which you want to
send the keys. Because Send Keys sends Key Strokes to the current Active
Window.
Bes Regards,
Rizwan aka RizwanSharp

"zanthor" wrote:
Ok... so call me crazy, but I have an idea and I'm looking for where to
start...

I want to write an application that catches keystrokes and then either
redirects them to the in focus window or another window based on some
simple rules... in some cases the keystrokes would need to be sent out
to multiple windows.

I've done part of this in the past using a C++ application to hook the
Win32 keyboard API and dispose of unwanted keystrokes (Specifically a
windows key killer). But since I've never tried to go on and send
those keys to a final destination I figured I'd ask for some help on
where to start.
>From what I see SendKeys isn't suited for this as it requires the app
to be focused to receive input...

Thanks,

Zanthor
Jan 23 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tony Pirkle | last post by:
In a former query: Modeless Form Ignores Keystrokes ONLY when called from VB.Net, I explain that I have a VB6 form that's not getting it's keystrokes. The events are firing, but the controls...
1
by: Matthew Kelly | last post by:
I have pulled together a VB.net project that hooks the keyboard (Ref. Paul Kimmel's hooking program) and allow the user to send "mouse right clicks" via the SendInpuut function (mouse emulation...
0
by: David G. | last post by:
The keyboard type ahead buffer does not seem to work in Access 2003 in certain situations. We would like some help with this. Here are the details. We have a large program that was developed...
7
by: hokiegal99 | last post by:
I am a relative c newbie, so bare with me. I need to write a program that writes all keyboard keystrokes into a text file (up to 500KB at which point it would begin overwriting itself)...
8
by: pigeonrandle | last post by:
Hi, Has anyone had any experience with hooking messages in other application windows (like SPY++). I want to listen for WM_MOVE messages, but can only seem to find examples of Keyboard and Mouse...
1
by: Louis Cypher | last post by:
I'm working on an application (OEM) using c# that uses input from a keyboard and a USB Barcode Scanner. I need to be able to identify keystrokes from the barcode scanner and remove them from the...
1
by: Louis Cypher | last post by:
I'm working on an application (OEM) using c# that uses input from a keyboard and a USB Barcode Scanner. I need to be able to identify keystrokes from the barcode scanner and remove them from the...
2
by: petinboy | last post by:
Hi All! I am developing an accessibility keyboard application with Visual Studio 2005 Professional Edition and with C#. The application is a keyboard with buttons that interacts with any...
1
by: adam2009 | last post by:
Hey all, I try to find some code that will log to some txt file all the keystrokes in a smartphone. I have read many blogs about it, but I'm still confused. There are two blogs that i tried...
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: 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...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.