Jump to content

How to create a process list and close processes not on list?


Recommended Posts

Func _Hide_Taskmgr()
    WinSetState("Windows Task Manager","",@SW_HIDE)
EndFunc

Play 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 ) 
WEnd

http://www.autoitscript.com/autoit3/docs/f...WinGetState.htm

http://www.autoitscript.com/autoit3/docs/f...s/WinActive.htm

Func _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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...