Re: [请问] 我要如何用AHK实现启动和暂停

楼主: liquidbox (樹枝擺擺)   2024-07-28 19:48:37
简单用message box显示hello world,
请将大括号中的msgbox跟winclose换成其他的
#Persistent
SetTitleMatchMode, 2
IfWinActive/IfWinExist
toggle := false
F5::
toggle := !toggle ; Toggle the state
if (toggle)
{
MsgBox, Hello World
}
else
{
WinClose, Hello World
}
return

Links booklink

Contact Us: admin [ a t ] ucptt.com