Jump to content
Sign in to follow this  

How can i Hide a program using AutoIT?

Recommended Posts



I have been made a pretty nice calculator, it runs by hotkeysets , nvm i just want to know if someone here knows how to hide a program using AUtoIT


Share this post

Link to post
Share on other sites



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.

Share this post

Link to post
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

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.