I'm trying to write a really basic script in AHK V2 and cannot resolve this error message:
Error: Hotkey or hotstring is missing its opening brace.
Line: 4
The code is this:
Code: Select all
#HotIf WinActive("ahk_class TTOTAL_CMD")
F12:: ; Assigns the script to the F12 key
Loop 500
{
SendInput "{Space}{Down}{Space}{Down}{Down}"
Sleep 100 ; Waits 100 milliseconds between each iteration
}
return
#HotIf ; Reset the condition
[Mod edit: Removed img-tags without a link.]
Thanks
Paul.