How can I convert the char type into the BYTE type?
For an example:
'a' would be 0x41.
And:
'A' would be VK_SHIFT and 0x41.
How can I convert the char type into the BYTE type?
For an example:
'a' would be 0x41.
And:
'A' would be VK_SHIFT and 0x41.
Okay, I am trying to use a char var in the keybd_event() function, but it wants a BYTE instead. How should I do that?
(BYTE)VarNameOriginally Posted by Cool-August
No offence Denethor2000, but I'm that stupid, I've already tried that a dozen times.
A BYTE is just a typedef for an unsigned char. Show your code and explain the problems you are having.
if you are trying to stuff the keyboard with some text just as if someone typed it at the keyboard, then use one of the keyboard functions, such as keybd_event
follow the link and it will show you a list of all the VK_* keys.
You obviously aren't that smart since you haven't shown a single piece of code.Originally Posted by Cool-August
Also going to move this to the windows board