Shonnie Posted May 9, 2007 Posted May 9, 2007 (edited) If Not WinActive("Diablo II","") Then WinActivate("Diablo II","") WinWaitActive("Diablo II", "") $state = WinGetState("Diablo II") If BitAnd($state, 32) Then MsgBox(0, "Example", "Window is maximized") Else MsgBox(0, "Example", "um...") EndIf ALWAYS returns "um..." even when its fullscreen. I'm starting to think its Diablo II's fault. And another question: Is there anything that could emulate WinGetSize? Since I think that would work better than WinGetState for this cause... ^.^ Edited May 9, 2007 by Shonnie
zmp Posted May 9, 2007 Posted May 9, 2007 Fullscreen and maximized are two different things Maximized means that you have well.. maximized that window (middle button in window title bar) Having detect fullscreen is a bit more complicated tho. I code bots :: Need a bot? :: xythec@gmail.com
Shonnie Posted May 9, 2007 Author Posted May 9, 2007 Fullscreen and maximized are two different thingsMaximized means that you have well.. maximized that window (middle button in window title bar)Having detect fullscreen is a bit more complicated tho.Is there a way i can tell if its maxinized vs. restored?And what about detecting client size?
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