【发布时间】:2009-12-01 19:07:46
【问题描述】:
我有一个问题,AutoHotkey 告诉我在“else”前面缺少{,我认为我的代码非常好。 (直到我将与窗口相关的 if 从 Pidgin 更改为 qutIM)
^!p::
IfWinExist ahk_class QWidget, ,qutIM { ;if there is a qutIM-window other than the buddy-list...
IfWinNotActive ahk_class QWidget, , qutIM { ;ans it is not active...
WinActivate
} else { ;the closing bracket in front of the else here puts AHK off...
WinMinimize
}
} else { ;do some stuff with the buddy-list
; [...]
}
return
我担心我忽略了一些愚蠢的事情,但我似乎无法让它发挥作用。
【问题讨论】:
标签: compiler-errors autohotkey curly-braces