Sign in to follow this  
Followers 0
CounterCraft

WinSetState @SW_HIDE question

3 posts in this topic

#1 ·  Posted (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 by CounterCraft

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by CounterCraft

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