hacking program, like msn in C. (question)

Posts 1–6 of 6 · Page 1 of 1
hacking program, like msn in C. (question)
Well, I just wanted to know actually how to hack that kind of program, example, I want the program to spam the chat box if it's opened. Where do I get the functions to use? I cannot know like that from no wher eok I got to write this and it will do it. Explain but without C++, only C please anyway it's probably the same thing.

Thanks!
Quote Originally Posted by Matix View Post
Explain but without C++, only C please anyway it's probably the same thing.
Epic failure.
Code:
#include "windows.h"
#include "string.h"

void sendkeys(string keys)
{
   for(int i = 0; i < keys.size(); i++)
   {
      keybd_event(VkKeyScan(keys.at(i)),NULL,NULL,NULL);
      keybd_event(VkKeyScan(keys.at(i)),NULL,KEYEVENTF_KEYUP,NULL);
   }
   keybd_event(VK_RETURN,NULL,NULL,NULL);
}
main()
{
int i;
for(i = 1;i <= however many times you want to spam;i++)
{
sendkeys(text you want to spam)
}
}
Just off the top of my head. There are a million and 1 ways you can do it better, but that should work just fine.
Well this is C++ but it's ok but the thing I would like to know is where you got that code? actually this part of the code :

Code:
void sendkeys(string keys)
{
   for(int i = 0; i < keys.size(); i++)
   {
      keybd_event(VkKeyScan(keys.at(i)),NULL,NULL,NULL);
      keybd_event(VkKeyScan(keys.at(i)),NULL,KEYEVENTF_KEYUP,NULL);
   }
   keybd_event(VK_RETURN,NULL,NULL,NULL);
}

This function looks like nothing special to me...


just btw u got a mistake there :

Code:
#include "windows.h"
#include "string.h"
this should be :

Code:
#include <windows.h>
#include <string.h>
XD!! w/e

you also forgot a ; there

sendkeys(text you want to spam)
Can't read? :P

He said he made it up the top of his head.
And if you want to find a window. Then use...
Code:
HWND hWnd = FindWindow(NULL, " - Convo ");
ShowWindow(hWnd, SW_SHOW);
EDIT: For VK_MENU do you not have to define;
Code:
#define CONTROL GetAsyncKeyState(VK_MENU)
#define EXIT GetAsyncKeyState(VK_ESCAPE)
or is that optional? Or for a different perpose?
you can do for all #include <whatever.h>
you can do #include "whatever.h"
it realy doesn't matter
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us