找回密码
 加入
搜索
查看: 2442|回复: 3

求定义热键 ALT+s+1 该怎么定义

[复制链接]
发表于 2009-8-25 23:08:06 | 显示全部楼层 |阅读模式
本帖最后由 lin6163 于 2009-8-28 09:13 编辑

求定义热键 ALT+s+1 该怎么定义
HotKeySet("!s1", "s")
HotKeySet("!+s+1", "s")
都不对
该怎么定义啊
在此先谢了
发表于 2009-8-25 23:28:27 | 显示全部楼层
应该不能这样定义吧,在Alt-s 时就会响应。。。 不管你后面还有什么
发表于 2009-8-25 23:28:52 | 显示全部楼层
While True
        If IsPressed(12) + IsPressed(53) + IsPressed(31) = 3 Then MsgBox(0, "", "热键被按下!")
        Sleep(10)
WEnd

Func IsPressed($sHexKey)
        Local $a_R = DllCall('user32.dll', "int", "GetAsyncKeyState", "int", '0x' & $sHexKey)
        If Not @error And BitAND($a_R[0], 0x8000) = 0x8000 Then Return 1
        Return 0
EndFunc   ;==>IsPressed

评分

参与人数 1金钱 +3 贡献 +2 收起 理由
afan + 3 + 2

查看全部评分

发表于 2013-1-26 16:21:00 | 显示全部楼层
学习了~~~ 这个方案不错 不知道会不会漏掉按键
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-29 13:27 , Processed in 0.099038 second(s), 22 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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