Здрасте. Я новичок в Autoit, поэтому не могу найти ошибку. Помогите пожалуйста.
Код:
GUICreate("HideFire", 100, 100)
GUISetState(@SW_SHOW)
HotKeySet("{F5}", "_hide")
while 1
$msg = GUIGetMsg()
WEnd
Func _hide()
if WinExists("Opera") Then
WinSetState("Opera", "", @SW_HIDE)
Else
WinSetState("Opera", "", @SW_SHOW)
EndIf
EndFunc