简体   繁体   English

删除Windows Mobile快捷方式

[英]Remove shortcuts windows mobile

I have an application developed on Windows Mobile and Windows CE using C#. 我有一个使用C#在Windows Mobile和Windows CE上开发的应用程序。 I need to disable keys native Windows shortcut on the device where my application is installed. 我需要在安装我的应用程序的设备上禁用本机Windows快捷键。 I need that when my application is working the keys of native Windows shortcut does not work. 我需要在我的应用程序正常工作时,本机Windows快捷方式的键不起作用。 For example F1, F2 ... . 例如F1,F2...。 Because I want to use them these keys (wrapper) on the website that my application will open. 因为我想在应用程序将打开的网站上使用这些键(包装器)。 I need to do this for both Windows Mobile as Windows CE. 对于Windows Mobile和Windows CE,我都需要这样做。 Could someone help me? 有人可以帮我吗?

I think you have to use the hook system with DllImport, an example here on code project 我认为您必须在DllImport中使用钩子系统, 这是代码项目的示例

You can use this to catch the funny OS assigned keys like F1, F2, F3, F4, F6 and F7 (Softkey 1 and 2, Phone, End, Volume Up, Volume Down); 您可以使用它来捕获有趣的OS分配键,例如F1,F2,F3,F4,F6和F7(软键1和2,电话,结束,调高音量,调低音量); and last but not least catch the Win Key press. 最后但并非最不重要的一点是按下Win键。

Although there are ways to unlink the function keys of there Windows Mobile OS functions, this may possibly not work within the Internet Explorer Mobile (IEM) or a hosted webbrowser control. 尽管有一些方法可以取消链接Windows Mobile OS功能的功能键,但是在Internet Explorer Mobile(IEM)或托管的Web浏览器控件中,这可能不起作用。

The easiest way to get all keys into an application is to use the AllKeys(bool) API with the argument TRUE. 将所有密钥导入应用程序的最简单方法是使用参数为TRUE的AllKeys(bool)API。

If you host a webbrowser control, you may so catch the function keys and send them directly into the webbrowser control window. 如果托管Web浏览器控件,则可以捕获功能键并将其直接发送到Web浏览器控件窗口中。 But then it depends on the webbrowser rendering engine, if the function key values are issuing an javascript event. 但是,如果功能键值发出了javascript事件,则取决于webbrowser呈现引擎。 The new Windows Mobile (>6.1.5) engine supports javascript key events (see http://www.hjgode.de/wp/2012/09/27/windows-mobile-redirect-function-keys-into-internet-explorer-mobile-browser/ and http://www.hjgode.de/wp/2009/05/14/internet-explorer-mobile-handles-key-events/ ). 新的Windows Mobile(> 6.1.5)引擎支持javascript键事件(请参阅http://www.hjgode.de/wp/2012/09/27/windows-mobile-redirect-function-keys-into-internet-explorer -mobile-browser /http://www.hjgode.de/wp/2009/05/14/internet-explorer-mobile-handles-key-events/ )。

Some closed down kiosk mode browsers, like Intermec Browser and Naurtech TE, provide special setups to enable you to call javascript functions directly for functio (and other) keys. 一些关闭的信息亭模式浏览器,例如Intermec Browser和Naurtech TE,提供了特殊的设置,使您可以直接为功能键(和其他键)调用javascript函数。

On Windows CE devices there is normally no need for special function key handling as the OEMs do not use pre-defined function keys. 在Windows CE设备上,由于OEM不使用预定义的功能键,因此通常不需要特殊的功能键处理。 But this depends on the OEM, every Windows CE OS can be designed freely. 但这取决于OEM,每个Windows CE OS都可以自由设计。 There is no standard as forced with Windows Mobile certification. 没有Windows Mobile认证强制的标准。

If you can avoid it, I would recommend to not use function key assignments in web browser applications. 如果可以避免,我建议不要在Web浏览器应用程序中使用功能键分配。

If you need to process funcion keys in IEM6 you may need something like my iHookIE6 which redirects function keys directly into IEM: http://www.hjgode.de/wp/2012/09/27/windows-mobile-redirect-function-keys-into-internet-explorer-mobile-browser/ 如果您需要在IEM6中处理功能键,则可能需要类似iHookIE6的功能,该功能将功能键直接重定向到IEM: http ://www.hjgode.de/wp/2012/09/27/windows-mobile-redirect-function- 键-到-互联网资源管理器的移动浏览器/

Remember that key handling is part of the javascript engine on the client side. 请记住,密钥处理是客户端javascript引擎的一部分。

Feel free to search my web site for more on function keys and Windows Mobile web browser engine. 随时在我的网站上搜索有关功能键和Windows Mobile Web浏览器引擎的更多信息。

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

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