Hi I have a couple of questions for the first app I am creating.
Firstly I am trying to have user input certain things, and it is not working correctly.
printf("Object : ");
scanf("%04X", &code);
printf("Message : ");
scanf("%s", input);
Object is working perfectly, but then the Message I am trying to input... I am trying to do a string input (which could contain spaces), and I am only getting the first word (if there is a space).
The end result is to send the sting off to this:
void SendString(char* string);
I am trying to do it after the input like this:
SendText( pid, input);
incase your wondering about SendText, its:
void SendText ( UINT pid , char message[4096] )
{
CKeyboardHelper* pKeyboardHelper;
pKeyboardHelper = new CKeyboardHelper("WindowerMMFKeyboardHandler_4384");
pKeyboardHelper->SendString(message);
delete pKeyboardHelper;
}
Thanks in advance, any help is appreciated.