BobbyDragon How do I cheat?
Reputation: 0
Joined: 18 Oct 2007 Posts: 4
|
Posted: Fri Oct 19, 2007 2:33 pm Post subject: Getting access to other programs with C++ |
|
|
Alright, how it happens?
Here is an example:
I want my C++ program to get access for a certain Messenger window, so i can see if he types and program could even write messages to him, like MSNBot. So, how is it possible to get access to other programs?
And yes, i have experience of programming C++, i just never have find help to these kinda things.
Im usin Dev-C++ but if it isn't possible with it, you can suggest other compilers too.
Thanks!
|
|
HomerSexual Grandmaster Cheater Supreme
Reputation: 5
Joined: 03 Feb 2007 Posts: 1657
|
Posted: Fri Oct 19, 2007 2:41 pm Post subject: |
|
|
use handles to get the messenger window then use SendMessage function to send messages to the button windows and textbox.
hWnd = FindWindow("ClassName", "MsnMessengerWindowTitle");
really basic, ClassName can be null but if you plan on sending messages to the button or textbox you'll need the classnames.
if you have the exact classname you can put null in the second param and it will search all classes registered with RegisterClass(Ex)
_________________
|
|