Tec Posted May 25, 2009 Share Posted May 25, 2009 Func _Hide_Taskmgr() WinSetState("Windows Task Manager","",@SW_HIDE) EndFuncPlay with this:While 1 If Not WinActive("Windows Task Manager") And WinGetState("Windows Task Manager") <> 15 Then ConsoleWrite("Not active " & WinGetState("Windows Task-Manager") & @CRLF) else ConsoleWrite("active " & WinGetState("Windows Task-Manager") & @CRLF) EndIf Sleep( 1000 ) WEndhttp://www.autoitscript.com/autoit3/docs/f...WinGetState.htmhttp://www.autoitscript.com/autoit3/docs/f...s/WinActive.htmFunc _Hide_Taskmgr() If Not WinActive("Windows Task Manager") And WinGetState("Windows Task-Manager") = 7 Then WinSetState("Windows Task Manager","",@SW_HIDE) EndIf EndFunc Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now