messages from other windows

This is a discussion on messages from other windows within the Windows Programming forums, part of the Platform Specific Boards category; how could I have one program monitor the user input of another...

  1. #1
    Registered User canine's Avatar
    Join Date
    Sep 2001
    Posts
    125

    messages from other windows

    how could I have one program monitor the user input of another
    In a perfect world every dog would have a home and every home would have a dog.
    Visit My Web Site, Canine Programming
    I use Win32 API

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    Do a search for the treads on keyloggers.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,789
    I just wrote a keylogger program this weekend.....it relays all keystrokes on one computer across a network to another computer......You can have a look at that for a few ideas.

    The technique to log keys is done with windows hooks.......but it gets complicated if you want to hook the whole system......you need your hook process to be contained inside a dll.......also, you need a system to relay the information back to your main program....remember that simple file pointers, handles and the like shared globally in a dll will not work because you will be using them in another process's address space therefore they will be invalidated (this caused me no end of problems untill I figured it out)......To share information on this I used a windows Mailslot....

    Anyway, have a look if you want.. Go to my site (link below), click tutorials and look at "Remote Keyboard Hook"....there are still a few bugs on it, but it works ok.....

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sending windows messages
    By Ideswa in forum Windows Programming
    Replies: 2
    Last Post: 03-02-2006, 12:27 PM
  2. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 11:14 AM
  3. Windows Rant followed by installation question
    By confuted in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 06-21-2003, 04:42 PM
  4. Codec Bitrates?
    By gvector1 in forum C# Programming
    Replies: 2
    Last Post: 06-16-2003, 08:39 AM
  5. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21