以编程方式在Windows 8 Touch Keyboard .NET上按“& 123”(TabTip [英] Programmatically Press ‘&123′ on Windows 8 Touch Keyboard .NET (TabTip

查看:78
本文介绍了以编程方式在Windows 8 Touch Keyboard .NET上按“& 123”(TabTip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近看了很多,我甚至找不到任何东西引导我到正确的地方。

任何帮助都会非常感激,甚至任何建议我在哪里可以找到TabTip文档/ api。

解决方案

以编程方式模拟键盘或鼠标输入的唯一正确方法是使用API​​ SendInput

https:// msdn.microsoft.com/en-us/library/windows/desktop/ms646310%28v=vs.85%29.aspx [ ^ ]。



所有其他方法,例如使用某些库API发送消息,取决于许多因素,例如准备好以某种方式处理消息的窗口,键盘焦点的位置以及类似的东西,所以这样的类型仿真一般不会起作用即使它们可以用于那些特殊情况。与之相反的是 SendInput ,因为真实事件通过真实设备驱动程序触发了它。



< DD> -SA

I've been looking a lot recently and I can not even find anything to lead me to the correct place.
Any help would be much appreciated, even any suggestion where do i find TabTip documentation / api.

解决方案

The only correct way to programmatically simulate keyboard or mouse input is using the API SendInput:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms646310%28v=vs.85%29.aspx[^].

All other methods, such as sending a message, using some library APIs, depend on many factors, such as having a window prepared to handle messages in certain way, position of keyboard focus, and things like that, so such kinds of simulation won't work in general case, even when they can be used for those special cases. In contrast to that SendInput acts as it was called triggered by real event through the real device driver.

—SA


这篇关于以编程方式在Windows 8 Touch Keyboard .NET上按“&amp; 123”(TabTip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆