Re: [AHK-] 請問怎麼真實模擬D-pad的上下左右?

看板EzHotKey作者 (????)時間10年前 (2015/04/24 16:23), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/4 (看更多)
我把上下 改到YH測試 有些問題想要請教一下 ※ 引述《eight0 ( )》之銘言: : ~up:: : if (GetKeyState("down")) { ^^^這down後面沒有模式參數 是指down down嗎? 如果只是確認down的發送狀態 那無論有沒有按 都直接send {xx up}的話 會不會甚麼缺點? 會比較慢? 還是? : Send {down up} 如果改用sendinput有沒有甚麼缺點? : } : return 我把up改到Y down改到H後: --------------------------- y:: a::b這種標準的remap 實際上是用send發送的嗎? send {up down} ~up原本同步發送的up key 該用send還是sendinput? if (GetKeyState("down")) { Send {down up} } return y up:: send {up up} if (GetKeyState("h", "P")) { Send {down down} } return h:: send {down down} if (GetKeyState("up")) { Send {up up} } return h up:: send {down up} if (GetKeyState("y", "P")) { Send {up down} } return -------------------------- 可能是我邏輯不好 或是官網說明不了解 謝謝你的幫忙^^ : ~up up:: : if (GetKeyState("down", "P")) { : Send {down down} : } : return -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 1.164.108.89 ※ 文章網址: https://www.ptt.cc/bbs/EzHotKey/M.1429863790.A.32B.html
文章代碼(AID): #1LEVrkCh (EzHotKey)
討論串 (同標題文章)
文章代碼(AID): #1LEVrkCh (EzHotKey)