Sign in to follow this  
Followers 0
fly

How Can I Toggle A Hidden Window?

5 posts in this topic

I have a CMD window that I have disabled. I would now like to be able to enable/disable it by clicking a button. How would I do that?

Share this post


Link to post
Share on other sites



WinSetState ( "title", "text", @SW_HIDE ) to hide

WinSetState ( "title", "text", @SW_SHOW ) to show

Put each under a button or toggle the button show or hide depending on it's current state.


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Share this post


Link to post
Share on other sites

WinSetState ( "title", "text", @SW_HIDE ) to hide

WinSetState ( "title", "text", @SW_SHOW ) to show

Put each under a button or toggle the button show or hide depending on it's current state.

Hmm, that doesn't seem to be working. Its a CMD.EXE window, if that makes a difference.

Share this post


Link to post
Share on other sites

Hmm, that doesn't seem to be working. Its a CMD.EXE window, if that makes a difference.

WinSetState ( "Command Prompt", "", @SW_HIDE )
WinSetState ( "Command Prompt", "", @SW_SHOW )

Works for me.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

I've made a little script to test it with and it works, but it's a little freaky to post. I'll play some more and post when it looks (and acts) ok.


Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

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