找回密码
 加入
搜索
查看: 1949|回复: 5

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

[复制链接]
发表于 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实现抢热键成功的没? 谢谢
 楼主| 发表于 2011-4-28 17:00:59 | 显示全部楼层
看来这个问题比较难啊。。。 顶一顶
 楼主| 发表于 2011-4-28 17:01:40 | 显示全部楼层
这个功能能通关过 api 实现吗?
发表于 2011-4-28 18:08:54 | 显示全部楼层
我觉得,热键跟程序打开的顺序有关系!
新打开的程序热键生效
纯属个人意见,未测试
 楼主| 发表于 2011-4-28 22:12:35 | 显示全部楼层
我觉得,热键跟程序打开的顺序有关系!
新打开的程序热键生效
纯属个人意见,未测试
love5173 发表于 2011-4-28 18:08



    全局热键是谁先占用 谁使用  关键是怎么把之前占用的给抢过来 据说 AHK可以 而且那个帖子里面还有演示代码
发表于 2011-4-29 12:21:45 | 显示全部楼层
挂个钩子,把原来的热键返回屏蔽掉
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-21 04:25 , Processed in 0.078327 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表