I am working on building a program that takes messages from another program and using various methods, sends messages back to that program.
I'm trying to figure out how to get a message from a program that is always producing messages, get my program to read it, and act accordingly. Maybe just a sample one would help, I read a whole manual and couldn't find anything on what I was trying to find.
I don't mean take it from a program that I already made, the program I want to take the messages from I downloaded quite a bit ago.
Any help would be awesome. Thank you. If there are any questions that could help you help me, I don't mind them.
You need to use Operating System based calls for this. Look inside of the MSDN for more info and function names. There should be something like ReadProcessMemory function knowing Windows...
I'm am playing a mud, and using the programs Zmud and Mushclient to play said games. They are text games and kind of work almost like a chat room. Well I'm trying to figure out how to take a line from the zmud program and use a program I make to send a command back to zmud for instance...
To tell you the truth, I did not understand you meaning clearly. So I just reply as I thought.
1. What is the relationship between with you TWO programs. There are in the same computer, or there are over network, such as one is client, the other is server?
2. If there are in the same computer, you should use some knowledge called IPC(Inter Process Communication). In linux, there are five methods: semaphore, message queue, pipe, share memory and signal. as for which method should you use, this is according to you actually implementation.
3. If you are over network, this is more simple. Just connect to the server from client, then send/get message is OK.
I mostly use Vista, but I have an unbuntu (wubi :( ) that I can use. I am using microsoft visual C++ express to do my stuff currently. I will be trying to do this local (on the comp first)