G
Guest
Hey guys I have written a small application that will send keys from the
keyboard depending on the users input. My thing is I can't use SendKeys.Send
because i need to emulate the keyboard pressing the keys so I am using
Keybd_Event from user32.dll.
When the user gives their input they place the number they would like to
send into textbox1. I need to some how be able to convert the 0 - 9 to be
0x30 - 0x39. I was thinking I could just use: keybd_event(0x30 +
Convert.ToByte(textBox1.Text), 0x45, KEYEVENTF_EXTENDEDKEY, (UIntPtr)0); but
that doesn't work. I'm in a rut because I have been spending to much time on
this last detail. Any help would be great! Thank you so much!!!
keyboard depending on the users input. My thing is I can't use SendKeys.Send
because i need to emulate the keyboard pressing the keys so I am using
Keybd_Event from user32.dll.
When the user gives their input they place the number they would like to
send into textbox1. I need to some how be able to convert the 0 - 9 to be
0x30 - 0x39. I was thinking I could just use: keybd_event(0x30 +
Convert.ToByte(textBox1.Text), 0x45, KEYEVENTF_EXTENDEDKEY, (UIntPtr)0); but
that doesn't work. I'm in a rut because I have been spending to much time on
this last detail. Any help would be great! Thank you so much!!!