开发者

How to set "orange button" state on Motorola MC55

开发者 https://www.devze.com 2023-02-24 09:37 出处:网络
What I need is to activate \"orange button\" when user focus TextBox on the form. Orange button is hardware button to switch from one set of keys to another (on hardware keyboard).

What I need is to activate "orange button" when user focus TextBox on the form. 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.

Is there some API to do this? 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

You need to find out the CLSID of the 'orange button'-keyset. This can be retrieved using SHSipInfo with SPI_GETCURRENTIM as uiAction (while this keyset is enabled).

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消