Sign in to follow this  
Followers 0
AfX78z90

How can i Hide a program using AutoIT?

3 posts in this topic

Hello

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

Thanks

Share this post


Link to post
Share on other sites



WinSetState

--------------------------------------------------------------------------------

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

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

Parameters

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()

winkill("BitTorrent")

endfunc

Func toggle()

if $toggle = 1 then

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

$toggle = 0

Else

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

$toggle = 1

endif

endfunc

while 1 = 1

sleep(500)

if $toggle = 1 then

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

endif

wend


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  
Followers 0