AfX78z90 Posted September 9, 2005 Share Posted September 9, 2005 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 Link to comment Share on other sites More sharing options...
Insolence Posted September 9, 2005 Share Posted September 9, 2005 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. Link to comment Share on other sites More sharing options...
JoshDB Posted September 9, 2005 Share Posted September 9, 2005 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 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