Getting information from form

Posts 14 of 4 · Page 1 of 1
Getting information from form
Hello everybody.

I was wondering rather there are some easy ways to get a sort of messageBox type textbox where people can enter information. I really rather not have to code an entire windows form just to get 1 number from people. It's for a speedhack Im working on and I need people to be able to enter information, press okay, and for my program to process it. Im not really sure what I should look up... its not a message box, like 1 step higher then that.
Wouldn't you just have to make a window with a text box in it? I haven't heard of a MessageBox like textbox. But who knows, good luck.
this is trainer where u could enter a value and that value will be your points in game similar what u want.
WIN32 APPLICATION FORM
Code:

LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
 {
char hold[256] = {0};
//hProc is your game name.
     switch(msg)
     {
         case WM_CREATE:
             CreateWindow("button", "Change Points", WS_VISIBLE | WS_CHILD, 50, 105, 100, 20, hWnd, (HMENU)1, NULL, NULL);//button 
             break;
         case WM_COMMAND:
             switch(LOWORD(wParam))
             {
                 case 1:
                     if(hProc)
                         hProc = getProcessHandle();
                     if(!hProc)
                         MessageBox(hWnd, "open game", "Engine", MB_OK);
                     else
                     {
                         GetDlgItemText(hWnd, 4, hold, 256); //get the text or integer that user has entered and store it in hold
                         changeSpeed(atoi(hold)); //macro atoi, to convert the string to an integer,
                     }

 void changeSpeed(int s)
 {
     WriteProcessMemory(you stuff here);
 }
this is basicly a button when pressed it will write the hack.

*this code is incomplete. ill write the whole trainer later if i have time.
hq.pngattachment deleted · 20 downloads before removal
Oh neato! Thanks this was just what I was looking for. I look into some of the functions a bit more.
Posts 14 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?