[英]autohotkey script 1longpress to shift+1
因此,當我按 1normal 時,我正在尋找腳本,output 將正常為 1,但是當我按 1longpress 時,output 將是 shift+1
我嘗試了來自 web 的信息,discords reddit autohotkey 論壇,但沒有富有成果的答案和測試。
$1::
While GetKeyState("1","p")
{
Send, (^)+1
}
Return
嘗試這個:
$1::
Keywait, 1, T0.3 ; waits 0.3 seconds maximally for 1 to be released
if ErrorLevel ; pressed for above that time
{
KeyWait, 1 ; wait for 1 to be released
Send +1
}
else
Send 1
Return
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.