初學 AHK ,想寫一個function 如下
把判斷IfWinExist, Run 函式化
RunOnce (ProgPath, Title="")
{
if (Title!="")
{
IfWinExist Title
{
WinActivate
return
}
}
Run ProgPath
}
#s:: RunOnce (sndvol32, Volume Control)
但是不work
不知道要怎樣才能達到我的要求?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.250.220
※ 編輯: PHP5 來自: 140.112.250.220 (01/06 16:52)