Re: [AHK-] 這是邏輯錯誤還是語法錯誤?
※ 引述《Sylph (炁)》之銘言:
: 程式目的:
: 如果notepad沒有打開,且當前時間是週一~週五的00:00~20:00,則開啟notepad。
: 但以下兩種寫法都不能達成此目的,請問是邏輯錯誤還是語法錯誤?
: https://i.imgur.com/dN9x1XN.jpg


你好,我改成如下,試過可以成功,您試試看吧!
^f6::
Process, Exist, notepad.exe
if ( ErrorLevel=0 )
if (A_Hour <= 20)
if A_DDD not contains 六,日
{
Run, notepad.exe
}
return
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.58.108.63 (臺灣)
※ 文章網址: https://www.ptt.cc/bbs/EzHotKey/M.1620066600.A.948.html
→
05/04 13:44,
3年前
, 1F
05/04 13:44, 1F
討論串 (同標題文章)
EzHotKey 近期熱門文章
PTT數位生活區 即時熱門文章