spymare Posted May 15, 2010 Posted May 15, 2010 HI im very new at autoit, i made this little program for hiding program/windows. My problem is: when there's no text in the hideinputbox (thide) and you click the hide button, the whole gui/my program will hide it self , i can't see why, can someone help me? expandcollapse popup#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #notrayicon $Form1 = GUICreate("HideMyWin", 259, 192, -1, -1) GUISetBkColor(0x3399FF) $thide = GUICtrlCreateInput("", 72, 16, 169, 25) $tshow = GUICtrlCreateInput("", 72, 48, 169, 25) $Hide = GUICtrlCreateButton("Hide", 16, 16, 49, 25) GUICtrlSetFont(-1, 9, 800, 0, "Arial Black") GUICtrlSetCursor (-1, 3) $Show = GUICtrlCreateButton("Show", 16, 48, 49, 25) GUICtrlSetFont(-1, 10, 800, 0, "Arial Black") GUICtrlSetCursor (-1, 3) $get = GUICtrlCreateButton("Get window title", 16, 88, 225, 25) GUICtrlSetFont(-1, 10, 800, 0, "Arial") GUICtrlSetCursor (-1, 3) $manager = GUICtrlCreateButton("Window Manager", 16, 120, 225, 25) GUICtrlSetFont(-1, 10, 800, 0, "Arial") GUICtrlSetCursor (-1, 3) $clear = GUICtrlCreateButton("Clear Window log", 16, 152, 225, 25) GUICtrlSetFont(-1, 10, 800, 0, "Arial") GUICtrlSetCursor (-1, 3) $tclear = ("") GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Hide WinSetState (guiCtrlRead($thide), "", @SW_HIDE) FileWrite(@scriptdir & "\windows.txt", GUICtrlRead ($thide) & @CRLF) Case $Show WinSetState (guiCtrlRead($tshow), "", @SW_SHOW) Case $get shellexecute(@scriptdir & "\window.exe") Case $manager if FileExists(@scriptdir & "\windows.txt") then shellexecute(@scriptdir & "\windows.txt") Else MsgBox(64, "Window Manager", "There's no hidden windows") endif Case $clear FileDelete(@scriptdir & "\windows.txt") sleep(1000) FileWrite(@scriptdir & "\windows.txt", ($tclear)) MsgBox(64, "clear log", "The Window Manager Log has been cleared") EndSwitch WEnd
spymare Posted May 15, 2010 Author Posted May 15, 2010 (edited) also need help hidding the procces if it's possible nvm just found out how to hide the process Edited May 15, 2010 by spymare
spymare Posted May 15, 2010 Author Posted May 15, 2010 also need help hidding the procces if it's possible nvm just found out how to hide the process but i still need help why it's hiding it self when theres nothing in the hide box.
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