Program Question/Idea

A little thing I'd like to create...

Page 1 of 1

1 Replies - 1459 Views - Last Post: 06 April 2006 - 11:24 AM Rate Topic: -----

#1 Coxen  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 05-April 06

Program Question/Idea

Posted 05 April 2006 - 10:51 AM

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: 05 April 2006 - 10:52 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Program Question/Idea

#2 William_Wilson  Icon User is offline

  • lost in compilation
  • member icon

Reputation: 205
  • View blog
  • Posts: 4,807
  • Joined: 23-December 05

Re: Program Question/Idea

Posted 06 April 2006 - 11:24 AM

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.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1