Top.Mail.Ru
Ответы

Настройка автоклика на Enter в 21:55 в AHK

Помогите пжл разобраться, где ошибка.
; Set a timer to check the time every minute
SetTimer, CheckTime, 60000 ; 60000 ms = 1 minute
return

CheckTime:
FormatTime, CurrentTime,, HH:mm ; Get the current time in HH:mm format
if (CurrentTime = "21:55") {
Send, {Enter} ; Send the Enter key
}
return

Дашборд пишет:
Error: Function calls require a space or "(". Use comma only between parameters.
Text: SetTimer, CheckTime, 60000
Line: 2
File: D:\Документы\AutoHotkey\Enter.ahk

По дате
По рейтингу
Аватар пользователя
Мудрец
8мес

Может с версий ахк связана ошибка.

Аватар пользователя
Мастер
8мес

Лови

123456
 SetTimer, CheckTime, 60000 
return  
 
CheckTime: 
    if (A_Hour = 21 && A_Min = 55) Send, {Enter} 
return