mcerk Posted January 31, 2005 Posted January 31, 2005 OK, I have a touch screen keyboard, but I'd like to emulate keyboard with this buttons. What do I have to call within button_click? tx matej Quote
thenerd Posted January 31, 2005 Posted January 31, 2005 Try using sendkeys sendkeys.send("poo") Quote
kejpa Posted February 1, 2005 Posted February 1, 2005 Send the characted for the button pressed to the textbox: pseudo code EventHandler for A_button_clicked { textbox = textbox + "A" } HTH Kejpa Quote
thenerd Posted February 1, 2005 Posted February 1, 2005 That would only work for a textbox in your own application, I think his is to be used for other applications as well. Quote
kejpa Posted February 2, 2005 Posted February 2, 2005 That would only work for a textbox in your own application' date=' I think his is to be used for other applications as well.[/quote'] This is going to be interesting, is there a custom keyboard for use with touch screens? How do you call it and how do you use it? We're using touch screens but we've always provided the keyboard with our applications... /Kejpa Quote
twistedm1nd Posted February 2, 2005 Posted February 2, 2005 I dunno if this would help .... the user32.dll has a keybd_event(uint bVk,uint bScan,long dwFlags,long dwExtraInfo ) uint key = 44 // integer VK_SNAPSHOT = 44 - > for print screen To generate a key press, you;d say : keybd_event(key,0,0,0) To generate a key release you;d say: keybd_event(key,0,2,0) A list of all key codes is defined in the winuser.h header Quote
thenerd Posted February 2, 2005 Posted February 2, 2005 You can always use SENDKEYS like i said before!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.