昨天在论坛上看到一段代码,稍微改了一下差不多能用:
Code: Select all
LShift::
KeyWait, LShift, T0.3 ; 等待0.3秒
if ErrorLevel { ;超时
LShift::LShift
} else {
Send {LAlt down}{Shift down}{LAlt up}{Shift up}
}
Return
思考了下,上面的脚本毕竟不适用我的需求。我需要的逻辑是:
Code: Select all
当左Shift按下时
if 有其他键按下:Shift作为修饰键来使用
if 没有按其他键就弹起(这里不需要时间判定):触发单按功能