制作一个简单的屏幕键盘 [英] Make a simple on-screen keyboard
问题描述
所以我要问的一个问题是我需要用小词回答(想想我是个智障的乡下人乡下人孩子菜鸟).我想用几个按钮制作一个简单的屏幕键盘,我需要帮助的是如何使其表现得像屏幕键盘一样(在顶部,当按下按钮时将焦点放在其他程序上),我也我需要搜索其他关键特性的帮助,如如何在C#中模拟按键,我用谷歌搜索并说使用SendKeys",但我尝试了一下,但intellisense却不认识它,并且它的下方出现了红色的摆动线,正如我所说的那样.我完全是菜鸟.
回顾一下:
1,如何专注于其他windows
2,模拟按键
谢谢!
-frank
So I''m asking a question I need answered with small words, (think of me as a retarded hillbilly redneck child noob). I want to make a simple on-screen keyboard with a few buttons, what I need help with is how to make it behave like an on-screen keyboard, (on top and keeps focus on the other program when push buttons), I also need help with the other key feature how to emulate a keypress in C#, I googled and it says ''use SendKeys'', I tried that but intellisense don''t recognize it AND It get red-wiggly line underneath, as I said I''m a total noob.
So to recap:
1, how to focus on other windows
2, emulate a keypress
thanks!
-frank
推荐答案
尝试以下操作:
http://www.codeproject.com/info/search.aspx?artkw=on+ screen + keyboard [^ ]
Try this:
http://www.codeproject.com/info/search.aspx?artkw=on+screen+keyboard[^]
我几次回答了类似的问题.您可以在这里找到所有涉及的内容:
应用程序焦点的得失 [在BACKSPACE按钮上编程 [ WPF中的触摸屏键盘控件 [
I answered a similar Question several time. You can find all what''s involved here:
Application focus getting and losing[^]
Programming on BACKSPACE button[^]
The references above are forSystem.Windows.Forms
.
For WPF, see this:
A Touch Screen Keyboard Control in WPF[^]
—SA
这篇关于制作一个简单的屏幕键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!