获取修改键的状态Compact Framework

时间:2021-11-05 03:46:09

How can I get the state of a modifier key using VB.NET on the Compact Framework, in this case Windows Mobile 6.1. I want to be able to determine if the following keys are pressed or locked:

如何在Compact Framework上使用VB.NET获取修改键的状态,在本例中为Windows Mobile 6.1。我希望能够确定是否按下或锁定了以下键:

Shift CTRL ALT

按住CTRL ALT

and for the Psion Teklogix machines Orange Blue Although I may be able to work this out, if I can determine the others.

而对于Psion Teklogix机器Orange Blue虽然我可以解决这个问题,但如果我可以确定其他的话。

I want to create my own on-screen indicator panel and want to poll the keys, not using events.

我想创建自己的屏幕指示器面板,并想要轮询键,而不是使用事件。

1 个解决方案

#1


So there is the AllKeys function. Probably the best way to go today.

所以有AllKeys功能。可能是今天最好的方式。

just say no to GAPI – What you need to know about AllKeys and input management.

对GAPI说不 - 您需要了解AllKeys和输入管理。

And this link should give you the P/Invoke to use in managed code.

此链接应该为您提供在托管代码中使用的P / Invoke。

Capture all Windows Mobile device keys using the AllKeys API

使用AllKeys API捕获所有Windows Mobile设备密钥

#1


So there is the AllKeys function. Probably the best way to go today.

所以有AllKeys功能。可能是今天最好的方式。

just say no to GAPI – What you need to know about AllKeys and input management.

对GAPI说不 - 您需要了解AllKeys和输入管理。

And this link should give you the P/Invoke to use in managed code.

此链接应该为您提供在托管代码中使用的P / Invoke。

Capture all Windows Mobile device keys using the AllKeys API

使用AllKeys API捕获所有Windows Mobile设备密钥