Re: [AHK-] 這是邏輯錯誤還是語法錯誤?

作者: zi98btcc (幼斤)   2021-05-04 02:29:57
※ 引述《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
作者: Sylph (仙客來)   2021-05-04 13:44:00
謝謝,明白語法問題了

Links booklink

Contact Us: admin [ a t ] ucptt.com