怎么用一个键启动和停止 Topic is solved

遇到了问题?请先进行搜索(中文和英文),然后在此提问

Moderators: tmplinshi, arcticir

zise

怎么用一个键启动和停止  Topic is solved

Post by zise » 21 May 2024, 23:39

Pause::Pause -1
XButton2::pause -1

XButton1::

只找到这种方式 一个键启动 一个键暂停+开始
想请大佬给个示例 单键启动和停止
fracsh
Posts: 5
Joined: 20 Dec 2016, 22:28

Re: 怎么用一个键启动和停止

Post by fracsh » 26 May 2024, 07:23

用逻辑非运算:

Code: Select all

t:=0
XButton1::
t:=!t
if t
{
_____这里写你的操作__
}
else
{
pause
}
return
[Mod edit: + [code][/code] tags.]
Post Reply

Return to “请求帮助”