Details: This will minimize (and make the window dissappear off your taskbar) WoW when you press {F9} while its minimized it will send the {UP} then {DOWN} arrow every 3 mins (while its dissappeared off your taskbar). When you press {F10} it will make WoW appear on your taskbar then maximize it. (So this will make your comp faster if you need to do a report or just wana look sumthin up )
AutoIt 3.X
Code:
hotkeyset ("{F9}", "hide")
hotkeyset ("{F10}", "show")
AutoItSetOption("WinTitleMatchMode", 4)
while 1
sleep(1000)
WEnd
func hide()
Global $Show = 0
Global $handle = WinGetHandle("classname=GxWindowClassD3d")
WinSetState ($handle, "", @SW_MINIMIZE )
WinSetState ($handle, "", @SW_HIDE )
If @error Then
MsgBox(0, "error", "couldnt find WoW")
Else
While 1
ControlSend($handle, "", "", "{UP DOWN}")
Sleep(100)
ControlSend($handle, "", "", "{UP UP}")
ControlSend($handle, "", "", "{DOWN DOWN}")
Sleep(100)
ControlSend($handle, "", "", "{DOWN UP}")
Sleep(200000)
If $Show > 0 Then ExitLoop
Wend
EndIf
endfunc
func show()
Global $Show = 1
WinSetstate ("World of Warcraft", "", @SW_SHOW )
WinSetState ("World of Warcraft", "", @SW_MAXIMIZE )
WinActivate ($handle, "")
endfunc
If you want the pause button to end your script.. add this-
Code:
HotKeySet("{PAUSE}", "EndScript")
While 1
ControlSend ("WORLD OF WARCRAFT", "", "", "{SPACE}")
Sleep(Int(Random(110000,130000)))
WEnd
; Function to exit script
Func EndScript()
Exit
EndFunc