一点小建议
Closed this issue · 4 comments
soiieking commented
大佬能不能增加下双击ctrl键呼出窗口,双击alt键进入hook模式呢?
sxzxs commented
可以实现,但是按键ui设置那里还没想好怎么搞
目前可以改ahk脚本自己实现:下面是demo
把 main_label标签那里改成下面触发方式
;双击Ctrl执行
Ctrl::
if winc_presses > 0 ; SetTimer 已经启动, 所以我们记录键击.
{
winc_presses += 1
return
}
; 否则, 这是新开始系列中的首次按下. 把次数设为 1 并启动
; 计时器:
winc_presses = 1
SetTimer, KeyWinC, -400 ; 在 400 毫秒内等待更多的键击.
return
;双击执行跳转
KeyWinC:
if winc_presses = 2 ; 此键按下了两次.
{
;要执行的动作
}
; 不论触发了上面的哪个动作, 都对 count 进行重置
; 为下一个系列的按下做准备:
winc_presses = 0
return
fpp19970225 commented
;=====================================================================o
; Public Methods
; 双击公共方法
DoublePress() {
if (A_ThisHotkey = A_PriorHotkey) and (A_TimeSincePriorHotkey < 500) {
return true
} else {
return false
}
}
sxzxs commented
已添加,最新版本,注意配置文件更新
@soiieking
soiieking commented
谢谢大佬,非常好用