喜再次我的劇本已接近完成,但有問題的執行熱鍵AHK禁用腳本A時,腳本B執行
問題:當我按下Alt +空格它與空間衝突..他們overlaping對方或執行兩個熱鍵,這使得自定義組合鍵不穩定或無法正常運轉的intented
這裏是代碼:
space::
send {shift down}{MButton down}
KeyWait, space
send {shift up}{Mbutton up}
return
!space::
send {Mbutton down}
KeyWait, space
keywait, alt
send {Mbutton Up}
return
#if, GetKeyState("MButton")
Lbutton::
RButton::
return
#if
我想添加規則,如果Alt +空格鍵 keycombo按住該熱鍵將無法工作
意思是我想禁用腳本A如果腳本B執行
腳本A ::
space::
send {shift down}{MButton down}
KeyWait, space
send {shift up}{Mbutton up}
return
腳本B ::
!space::
send {Mbutton down}
KeyWait, space
keywait, alt
send {Mbutton Up}
return
預先感謝您
1)儘量'sendplay ''而不是'發送'2)嘗試爲鍵標籤加上前綴:'$ space ::'和'$!space ::'3)試試這兩種方法 – wOxxOm
謝謝你的回覆,但我真的不知道sendplay和keylabels .. im在自動熱鍵中仍然是新的 –
目前您使用'send',我建議使用'sendplay'並在鍵標籤前添加'$',像我一樣hown。你也可以閱讀官方的[教程](https://autohotkey.com/docs/Tutorial.htm)。 – wOxxOm