作者syterol (小贼)
看板EzHotKey
标题[AHK-] 请问这一段程式码是什麽意思
时间Sun Oct 7 20:06:51 2018
以下程式码为我在网路上取得
会用但是不明白意思
希望有人能解释一下
==============================
MButton::
KeyWait, MButton, T2
if !(a := !a)
Reload
SetTimer, pressA, 0
pressA:
if ( 某条件成立 )
{
send 某键
}
Return
==============================
上述程式码作用为当我在游戏中按下中键时
会开始跑pressA里的东西
若某条件成立则输出键盘某键
持续loop
直到我再次按下中键才停止
而我不明白的部分在於!(a := !a)
能否有人能解释一下
谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 111.241.38.214
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/EzHotKey/M.1538914014.A.492.html
※ 编辑: syterol (111.241.38.214), 10/07/2018 20:09:56
1F:推 a0193143: 我没记错的话 就是一个类似开关(toggle)的东西 10/08 07:16
2F:→ a0193143: 那a可以换成你喜欢的东西 只要其他部分也有改到就行 10/08 07:16
3F:→ syterol: 可是a只有出现在这,其他地方完全没有 10/08 08:11