chinafla 发表于 2011-4-27 22:22:43

如何和其它应用程序 抢热键 ? 我已经搜索过 但是没找到答案

这是之前讨论过的帖子:http://www.autoitx.com/forum.php?mod=viewthread&tid=20527

有提到 _WinAPI_UnregisterHotKey 这个函数




_WinAPI_UnregisterHotKey ( $hWnd, $ID )

Parameters

$hWnd Handle to the window associated with the hot key to be freed. This parameter should be 0 if the hot key is not associated with a window.

$ID Specifies the identifier of the hot key to be freed.










-----------------------------------------------------------------------------------

$ID Specifies the identifier of the hot key to be freed.

这个 $ID 到底指的什么啊?


有用au3实现抢热键成功的没? 谢谢

chinafla 发表于 2011-4-28 17:00:59

看来这个问题比较难啊。。。 顶一顶

chinafla 发表于 2011-4-28 17:01:40

这个功能能通关过 api 实现吗?

love5173 发表于 2011-4-28 18:08:54

我觉得,热键跟程序打开的顺序有关系!
新打开的程序热键生效
纯属个人意见,未测试

chinafla 发表于 2011-4-28 22:12:35

我觉得,热键跟程序打开的顺序有关系!
新打开的程序热键生效
纯属个人意见,未测试
love5173 发表于 2011-4-28 18:08 http://www.autoitx.com/images/common/back.gif


    全局热键是谁先占用 谁使用关键是怎么把之前占用的给抢过来 据说 AHK可以 而且那个帖子里面还有演示代码

netegg 发表于 2011-4-29 12:21:45

挂个钩子,把原来的热键返回屏蔽掉
页: [1]
查看完整版本: 如何和其它应用程序 抢热键 ? 我已经搜索过 但是没找到答案