how could I have one program monitor the user input of another
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
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
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.....