如何使用c#.net加载keyboard.dll [英] How to load keyboard.dll with c#.net

查看:115
本文介绍了如何使用c#.net加载keyboard.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我使用Microsoft Keyboard Layout Creator制作了键盘布局。



http://www.microsoft.com /en-us/download/details.aspx?id=22339



当我创建一个布局时,它会创建一个dll。像kblen.dll这样的英语。你可能会在Windows系统文件夹[在win 7]中找到这个dll。在7中构建它。



但是当我创建键盘布局并安装它时可以加载语言栏。假设我安装了印地语。

在语言栏中,印地语和英语都会显示。如果你选择了印地语,你的键盘就会印成。



但是我想用c#加载keyboard.dll .net

有可能吗?

Hello everyone,
I made a keyboard layout with Microsoft Keyboard Layout Creator .

http://www.microsoft.com/en-us/download/details.aspx?id=22339

When I create a layout it creates a dll. Something like kblen.dll for english. you may found this dll on windows system folder [in win 7].its built it in 7.

however when I create a keyboard layout and install it can load from language bar. Suppose I install hindi.
In language bar both hindi and english will show.if you select hindi your keyboard will hindi.

but I wanna load keyboard.dll with c#.net
is it possible ?

推荐答案

MKLC创建一个安装程序。你为什么不用它?布局与特定应用程序无关,您不应加载/卸载它们。

但请查看此处: http://superuser.com/questions/170651/how-can-i-uninstall-a-keyboard-那个 - microsoft-keyboard-layout-creator-created#answer-171162 [ ^ ]。你会发现一些有用的提示。您还可以使用 sysinternals进程监视器 [ ^ ](或其他工具)来跟踪安装程序的操作。
MKLC creates an installer. Why don't you use that? A layout is not related to specific applications, you should not load/unload them.
But look around here: http://superuser.com/questions/170651/how-can-i-uninstall-a-keyboard-that-microsoft-keyboard-layout-creator-created#answer-171162[^]. You will find some useful tips. You can also use sysinternals process monitor[^] (or other tools) to track what the installer does.


确保在应用程序中安装键盘。程序启动时,使用LoadKeyboardLayout加载键盘布局。此功能的文档仅适用于C ++: http:// msdn .microsoft.com / zh-CN / library / ms646305%28v = vs.85%29.aspx [ ^ ]

AC#code snippet可在此评论中找到: http://www.hightech.ir/SeeSharp/changing-keyboard-layout -input-language-in-c#comment-111 [ ^ ]
Make sure you install your keyboard with your application. When your program starts, load the keyboard layout with LoadKeyboardLayout. The documentation for this function is only available for C++: http://msdn.microsoft.com/en-us/library/ms646305%28v=vs.85%29.aspx[^]
A C# code snippet can be found in this comment: http://www.hightech.ir/SeeSharp/changing-keyboard-layout-input-language-in-c#comment-111[^]


我不确定你的问题是否比这更深,但如果你需要添加a dll作为参考:



I'm not sure if your question is deeper than this,but if you need to add the a dll as reference :

1. right-click on the Project in Solution Explorer
2. Choose Add Reference
3. Click the Browse tab
4. Point to your .DLL.





或者如果你需要将它添加到你的工具箱中:





or if you need to add it to your toolbox :

1.Right-click on toolbox
2.select "Choose Items"
3.browse to your DLL.
4.Add the items


这篇关于如何使用c#.net加载keyboard.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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