Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,618 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 995 people online right now. Registration is fast and FREE... Join Now!




Program Question/Idea

 
Reply to this topicStart new topic

Program Question/Idea, A little thing I'd like to create...

Coxen
post 5 Apr, 2006 - 09:51 AM
Post #1


New D.I.C Head

*
Joined: 5 Apr, 2006
Posts: 1


My Contributions


Does anyone know of a method that could be used to grab keystrokes in an XP environment as they are being typed and then send those keystrokes into multiple predesignated windows simultaneously without activating those windows?

So if the program were active and you had 5 copies of Notepad open, you could type into one Notepad and it would also send those same keystrokes into all open Notepads in real time, but without making your active window change. It would also need to be able to exclude windows from receiving the keys at the users discretion.

Is this possible? Obviously I'm new to programming, and this may have been done before, but I'm having a mental breakdown here.

Thanks for the help.

This post has been edited by Coxen: 5 Apr, 2006 - 09:52 AM
User is offlineProfile CardPM

Go to the top of the page

William_Wilson
post 6 Apr, 2006 - 10:24 AM
Post #2


lost in compilation

Group Icon
Joined: 23 Dec, 2005
Posts: 3,970



Thanked 15 times

Dream Kudos: 3275

Expert In: Java, C, Javascript

My Contributions


Theoretically anything is possible, to do this would almost definatly need a hook, i do not believe you could search for the hook supplied by Notepad, as distiguishing from the seperate copies would not be easy as they are not the local focus of the program.
As to applying to any program, it may not work, written specifically for notepad, probably do-able, but it would not be an efficient program as it would have to constantly check for new instances of Notepad and then generate the output there.
C++ or C# would be the best place to work on this, maybe Java, but you would need some helper code outside of the general libraries.
I have not does this myself as of yet, but maybe in the near future.
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 03:14AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month