fly Posted April 18, 2006 Share Posted April 18, 2006 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? Link to comment Share on other sites More sharing options...
Fossil Rock Posted April 18, 2006 Share Posted April 18, 2006 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! Link to comment Share on other sites More sharing options...
fly Posted April 19, 2006 Author Share Posted April 19, 2006 WinSetState ( "title", "text", @SW_HIDE ) to hideWinSetState ( "title", "text", @SW_SHOW ) to showPut 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. Link to comment Share on other sites More sharing options...
BigDod Posted April 19, 2006 Share Posted April 19, 2006 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. 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 Link to comment Share on other sites More sharing options...
Fossil Rock Posted April 22, 2006 Share Posted April 22, 2006 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now