Jump to content

WinSetState @SW_HIDE question


Recommended Posts

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 by CounterCraft
Link to comment
Share on other sites

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)
Link to comment
Share on other sites

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 by CounterCraft
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...