Code: Select all
Control::
{
if KeyWait('Control')
ToolTip('test')
}
```
但测试的实际行为是, 第一次按下并松开ctrl时, 就已经弹出显示框了, 根本不会等待第二次键击ctrl, 请问这是怎么回事?
Moderators: tmplinshi, arcticir
Code: Select all
Control::
{
if KeyWait('Control')
ToolTip('test')
}
```
Code: Select all
~Control::
{
if KeyWait('Control')
ToolTip('test')
}
Code: Select all
~Ctrl:: ; Catch a double 按下CTRL时
{
If (A_PriorHotKey = A_ThisHotkey && A_TimeSincePriorHotkey < 400) ; CTRL was pressed twice CTRL按下了两次
ToolTip('test')
Sleep 0
KeyWait "Ctrl" ; Wait for CTRL to be released 等待释放CTRL
Return
}
Code: Select all
~Control::
{
if KeyWait('Alt')
ToolTip('test')
}
Code: Select all
Control Up::
{
if KeyWait('Alt', "D") ; 等待按下Alt键
ToolTip('test')
}
Users browsing this forum: No registered users and 4 guests