看板 EzHotKey 關於我們 聯絡資訊
※ 引述《Sylph (炁)》之銘言: : 程式目的: : 如果notepad沒有打開,且當前時間是週一~週五的00:00~20:00,則開啟notepad。 : 但以下兩種寫法都不能達成此目的,請問是邏輯錯誤還是語法錯誤? : https://i.imgur.com/dN9x1XN.jpg
: https://i.imgur.com/X2XEByb.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
Sylph: 謝謝,明白語法問題了 05/04 13:44