Jump to content

Toggle hide?


Recommended Posts

Ok, There's toggle Pause, in the hotkey part of the helpfile, im wanting to make the same thing, but for hide

so all I know is this~

Opt("WinTitleMatchMode", 2)
    WinSetState("Gaia ::", "", @SW_HIDE)

But, how would I make it so, the when I press the hotkey for the hide, it toggles it, so instead of just hide, it would go hide then unhide. hide then unhide, etc

# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Link to comment
Share on other sites

try something like:

Func _HideUnHide($s_Title, $s_Text = "")
    $state = WinGetState($s_Title, $s_Text)
    If BitAND($state, 2) Then
        WinSetState($s_Title, $s_Text, @SW_HIDE)
    Else
        WinSetState($s_Title, $s_Text, @SW_SHOW)
    EndIf
EndFunc   ;==>_HideUnHide

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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...