;-----------------------------------------------------
; Program:
; Hide / Show window.
;
; Description:
; Hide or Show all instances of
; World of Warcraft.
;
; Bugs:
; If more windows are names exact
; same name those are also hidden/shown.
;
; Author:
; j0achim
;
; Version:
; B0001
;-----------------------------------------------------
Global $title = "World of Warcraft"
Global $state = 1
HotKeySet("+!h", "toggle")
While 1
Sleep(100)
WEnd
Func toggle()
$var = WinList($title,"")
If $state = 1 Then
For $i = 1 to $var[0][0]
WinSetState($var[$i][1],"",@SW_HIDE)
Next
$state = 0
Sleep(2000)
else
For $i = 1 to $var[0][0]
WinSetState($var[$i][1],"",@SW_SHOW)
Next
$state = 1
Sleep(2000)
EndIf
EndFunc