Search found 1 match

by Tom2016
23 Apr 2016, 04:06
Forum: 脚本函数
Topic: 仅长按单键执行功能,不影响短按示例
Replies: 8
Views: 25847

Re: 仅长按单键执行功能,不影响短按示例

It is not working correctly, i found it will has issue when you press w and a, the "aw" will come out

$w::
KeyWait, w
If (A_TimeSinceThisHotkey > 500)
SetTimer, mainpw, -1
Else
SendInput, % GetKeyState("CapsLock", "W") ? "W" : "w"
Return
mainpw:
msgbox, w
Return

Go to advanced search