im making a trainer and ive figured out most of the stuff on my own, but im stumped on this last thing. im putting a speed hack in that has a checkbox and an edit box. i cant figure out how to take the value from the edit box and poke it when the checkbox is checked. going off of the dialog example from the help file it says
- Code: Select all
VOID EditProc( HWND hOwner, HWND hEdit ) {
// Get the whole line of text and print it.
INT iLength = GetWindowTextLength( hEdit ) + 1;
CHAR * pcText = Malloc( iLength );
GetWindowText( hEdit, pcText, iLength );
PrintF( "Text changed to “%s”.", pcText );
Free( pcText ); // Free your resources!
}
now i should only have to change PrintF to something like SetWindowText or something right? so far all attempts have giving me errors and i cant figure out how to give the value a name so in the function part of the checkbox i can put like
playerSpeed = editBoxText where editBoxText would be the value you put into the edit box.