CounterCraft Posted December 2, 2009 Posted December 2, 2009 (edited) If I hide windows and close the program with @SW_Hide before reverting back to @SW_SHOW, how would I retrieve the window back? I've tried to retrieve firefox after doing @SW_HIDE through task manager but I could not. Also, how do I hide admin run program? I can't hide admin-run ventrilo or ccleaner. Do I have to give admin right for my script to do so? If then, how? Edited December 2, 2009 by CounterCraft
picea892 Posted December 2, 2009 Posted December 2, 2009 can you provide code? Below is from the helpfile. My guess is you are not calling the window correctly. Have you used Autit v3 window info tool. Use that to get the class. The class will never change but potentially the firefox window title will. WinSetState("[CLASS:Notepad]", "", @SW_HIDE) Sleep(3000) WinSetState("[CLASS:Notepad]", "", @SW_SHOW)
CounterCraft Posted December 2, 2009 Author Posted December 2, 2009 (edited) I want to know a way to revert back to normal once I close autoit script. Func hideFunc() If $isItHidden = 0 then $titleHide = WinGetTitle("", "") WinSetState($titleHide, "", @SW_HIDE) $isItHidden = 1 Elseif $isItHidden = 1 then WinSetState($titleHide, "", @SW_SHOW) $isItHidden = 0 EndIf EndFunc It works fine as it is, but my problems are 1. It won't hide admin-run program in vista 2. I don't know how to reveal program once it's hidden via external method (task manager, cmd command, etc) Edited December 2, 2009 by CounterCraft
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