简体   繁体   English

如何在摩托罗拉MC55上设置“橙色按钮”状态

[英]How to set “orange button” state on Motorola MC55

What I need is to activate "orange button" when user focus TextBox on the form. 我需要的是当用户将TextBox放在窗体上时激活“橙色按钮”。 Orange button is hardware button to switch from one set of keys to another (on hardware keyboard). 橙色按钮是用于从一组键切换到另一组(在硬件键盘上)的硬件按钮。 In this case I need to switch to numeric keys when TextBox gains focus. 在这种情况下,当TextBox获得焦点时,我需要切换到数字键。

Is there some API to do this? 是否有一些API可以做到这一点? I wasn't able to find one. 我找不到一个。 Or is there a way to push this hardware button programmatically? 还是有办法以编程方式按下此硬件按钮?

The button is on bottom right 该按钮在右下角

You can achieve this using P/Invokes, take a look here: http://msdn.microsoft.com/en-us/library/aa453740.aspx 您可以使用P / Invokes实现此目的,请在此处查看: http : //msdn.microsoft.com/en-us/library/aa453740.aspx

You need to find out the CLSID of the 'orange button'-keyset. 您需要找出“橙色按钮”键集的CLSID。 This can be retrieved using SHSipInfo with SPI_GETCURRENTIM as uiAction (while this keyset is enabled). 可以使用SHSipInfo和SPI_GETCURRENTIM作为uiAction来检索(启用此键集时)。

After retreiving this CLSID you can hard-code in your application (note that this will only work for the MC55 and not for other devices!), and set it using SPI_SETCURRENTIM as uiAction. 检索完此CLSID后,您可以在应用程序中进行硬编码(请注意,这仅适用于MC55,不适用于其他设备!),并使用SPI_SETCURRENTIM作为uiAction进行设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM