Jump to content

How can i Hide a program using AutoIT?


Recommended Posts



Shows, hides, minimizes, maximizes, or restores a window.

WinSetState ( "title", "text", flag )


title The title of the window to show.

text The text of the window to show.

flag The "show" flag of the executed program:

@SW_HIDE = Hide window

@SW_SHOW = Shows a previously hidden window

@SW_MINIMIZE = Minimize window

@SW_MAXIMIZE = Maximize window

@SW_RESTORE = Undoes a window minimization or maximization

@SW_DISABLE = Disables the window

@SW_ENABLE = Enables the window

"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.
Link to comment
Share on other sites

I use this to hide BitTorrent ( ;

hotkeyset("{F7}", "toggle")

hotkeyset("{F8}", "e_xit")

run("C:\Program Files\BitTorrent\btdownloadgui.exe","",@SW_HIDE)

$toggle = 1

func e_xit()



Func toggle()

if $toggle = 1 then

WinSetState ( "BitTorrent", "", @SW_SHOW )

$toggle = 0


WinSetState ( "BitTorrent)", "", @SW_HIDE )

$toggle = 1



while 1 = 1


if $toggle = 1 then

WinSetState ( "BitTorrent", "", @SW_HIDE )



Ha, I haven't been on these forums since... 2006, almost. Behold, my legacy signature:My AutoIt idol is Valuater. You know you love him, too.My Stuff: D&D AGoT Tools Suite
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

  • Recently Browsing   0 members

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