Sign in to follow this  
Followers 0
AzKay

Toggle hide?

3 posts in this topic

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

Share this post


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

 

Share this post


Link to post
Share on other sites

Thanks, works perfectly ^^


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

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