Re: [AHK-] 請問自動按住後任一鍵取消?

看板EzHotKey作者 (斯馬克)時間2年前 (2021/08/09 21:17), 編輯推噓1(101)
留言2則, 1人參與, 2年前最新討論串2/2 (看更多)
※ 引述《Chemise ()》之銘言: : 想做到按一下 Left 後AHK自動按住 left : 按Right 取消按住的left 改按住right : 按A 取消之前按住的按鍵改按住A : 按B 取消之前按住的按鍵改按住B : 設一個停止鍵X 按下後取消之前按住的按鍵 : 我寫到按住後就不知道怎寫了,不知道怎取消之前按住的按鍵 : 請問大神這整個架構該怎麼寫比較好? : 感謝 $a:: SendInput, {d up} SendInput, {a down} return $d:: SendInput, {a up} SendInput, {d down} return x:: SendInput, {a up}{d up} return 用 {x up} 的語法能取消按下的按鍵 https://www.autohotkey.com/docs/commands/Send.htm#Repeating_or_Holding_Down_a_ Key -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 27.52.167.58 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/EzHotKey/M.1628515058.A.925.html

08/11 17:49, 2年前 , 1F
非常感謝大大,這方向可行,之前想太複雜了
08/11 17:49, 1F

08/12 13:29, 2年前 , 2F
發現個問題,設定的按鍵數量一多,會有點卡orz
08/12 13:29, 2F
文章代碼(AID): #1X4Ihoab (EzHotKey)
文章代碼(AID): #1X4Ihoab (EzHotKey)