BeBoP Posted July 6, 2006 Posted July 6, 2006 Basicly i have two games open (both windowed) and when I switch from one to the other the previous one becomes minimized my question is if its possible to keep them both up at the some time. I don't want either of them to have a top most attribute and I would like to switch between the both of them without the other minimizing.
Bert Posted July 6, 2006 Posted July 6, 2006 WinGetState should do the trick. Have a loop that looks to see if the window gets minimized. When it does, use WInSetState to put it back. The Vollatran project My blog: http://www.vollysinterestingshit.com/
BeBoP Posted July 7, 2006 Author Posted July 7, 2006 Thanks vollyman. That idea doesn't work as when the other window is up the first one gets countinally minimized so the script keeps on trying to put it up which creates a confilct and everything ceses to function. I was thinking more along the lines of locking the window as visible.
gamepin126 Posted July 7, 2006 Posted July 7, 2006 I tried this: $WinName = InputBox("", "Input window name.") $state = WinGetState($WinName, "") while 1 If BitAnd($state, 16) Then WinSetState($WinName, "", @SW_MAXIMIZE) EndIf WEnd I dunno why it won't work.
Skruge Posted July 7, 2006 Posted July 7, 2006 I tried this: $WinName = InputBox("", "Input window name.") $state = WinGetState($WinName, "") while 1 If BitAnd($state, 16) Then WinSetState($WinName, "", @SW_MAXIMIZE) EndIf WEnd I dunno why it won't work.WinGetState is outside of your loop, so $state never changes. [font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]
gamepin126 Posted July 7, 2006 Posted July 7, 2006 Oh, haha thanks. $WinName = InputBox("", "Input window name.") while 1 $state = WinGetState($WinName, "") If BitAnd($state, 16) Then WinSetState($WinName, "", @SW_RESTORE) EndIf WEnd This works, I'm gonna use it
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