如何模拟一个FN + - 键$ P $笔记本PSS?或如何在3G切换? [英] How to simulate a Fn+?-KeyPress for notebooks? OR how to switch on 3G?

查看:186
本文介绍了如何模拟一个FN + - 键$ P $笔记本PSS?或如何在3G切换?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

3G模块的笔记本电脑。当我重新启动笔记本,3G的模块再次关闭。我必须把它在每次重新启动。

3G module in a notebook. When I restart that notebook, the 3G module is turned off again. I have to turn it on on every restart.

所以这就是为什么我认为我需要一个简单的软件,可以模拟的<大骨节病> FN + <大骨节病>该KeyEvent -
这是笔记本电脑键盘上的功能是EN-或禁用3G个模块。

So that's why I thought I need a simple software that simulates the KeyEvent of Fn+-. It's function on the notebook keyboard is to en- or disable th 3G-module.

这是选择是我发现了3G模块的硬件ID和激活它。 (显然,它采用1网络设备,并在设备管理器4个COM端口...)

An option would be that I find out the 3G module's hardware-ID and activate it. (Apparently it uses 1 network device and 4 COM-ports in the device manager...)

我已经发现了谷歌,并发现这些线程:

I already discovered Google and found these threads:

  • Simulating Keyboard with SendInput API in DirectInput applications
  • How can I simulate function key combinations using C#?

不幸的是这些线程不给我一个解决方案...

Unfortunately these threads don't give me a solution...

现在我的问题:
用什么方法会更简单吗?

Now my question: What method would be more simple?


  • 模拟<大骨节病> FN -Key preSS

  • 获取硬件ID和acitvating他们

  • simulating the Fn-KeyPress
  • getting the hardware-IDs and acitvating them

然后......如何解决这个问题,一个简单的方法?

And then... how to solve that problem in an easy way?

我希望所提供的信息将帮助你帮助我。 :)

I hope the given Information will help you to help me. :)

附加信息:该解决方案可在C#中,批甚至注册表中的黑客。我只想说3G模块开启!

Additional info: the solution may be in C#, BATCH or even registry "hacks". I just want that 3G module to be turned on!

//编辑:
与硬件ID玩都不行!重新启动后,它根本就不是在设备管理器。只有当我一旦激活<大骨节病> FN + <大骨节病> - 它的上市那里。
那么,有没有其他办法,只是在3G切换?

// Playing with the hardware-ID will NOT work! After a restart, it's simply not in the device manager. Only after I once activated Fn+- it's listed there. So is there any other way to just switch on 3G?

推荐答案

要模仿你应该能够创建一个新的键盘事件键盘事件
这将模拟在C#中的一个关键preSS。例如:

To simulate a keyboard event you should be able to create a new keyboard event which will simulate a keypress in C#. example

keybd_event(VK_NUMLOCK,×45,KEYEVENTF_EXTENDEDKEY | 0,0);

这篇关于如何模拟一个FN + - 键$ P $笔记本PSS?或如何在3G切换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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