Sign in to follow this  
Followers 0
BeBoP

Keeping a window active

6 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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]

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