kabalarian Posted August 5, 2005 Share Posted August 5, 2005 I just did a search for "WinGetClientSize" and couldn't find any posts that helped me in the slightest ways. I call up a window to get it size, and no matter what happens it always gives me 800x600. The window is full-screen and i can get the windowed version of it to work fine. $d2win = InputBox("Diablo II Title", "What is the title to your Diablo II Window?", "Diablo II") WinWait($d2win) WinExists($d2win) WinActivate($d2win) Sleep(1000) $size = WinGetClientSize($d2win) ;WinActivate($d2win) ;WinMove($d2win, "", 0, 0) MsgBox(0, "Size", $size[0] & " / " & $size[1]) If $size[0]=800 Then MsgBox(0, "Windowed", "Playing diablo in windowed mode.") EndIf If $size[0]=1024 Then MsgBox(0, "Full", "Playing Diablo in full-screen mode.") EndIf Link to comment Share on other sites More sharing options...
GaryFrost Posted August 5, 2005 Share Posted August 5, 2005 try WinGetPos SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
kabalarian Posted August 5, 2005 Author Share Posted August 5, 2005 (edited) Nope I am still returning 800x600 and i am not at 800x600 resolution for my desktop EDIT: i have tried WinGetState also and that returned 15...so it knows its enabled, active, is visible and exists EDIT2: So no one knows whats wrong with this??... Edited August 6, 2005 by kabalarian Link to comment Share on other sites More sharing options...
kabalarian Posted August 6, 2005 Author Share Posted August 6, 2005 Okay so instead I used PixelGetColor to determine if the window is full screen or not...working perfectly now. Link to comment Share on other sites More sharing options...
kcd-clan Posted August 6, 2005 Share Posted August 6, 2005 Diablo is diffrent its not resizabel.Or movabel. Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone() Link to comment Share on other sites More sharing options...
kcd-clan Posted August 6, 2005 Share Posted August 6, 2005 (edited) o,And If the user has its windows setting o 1024 it will think that your in full. There isnt such think as 1024 for diablo its 640 and 800,800 is max. Edited August 6, 2005 by kcd-clan Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone() Link to comment Share on other sites More sharing options...
kabalarian Posted August 6, 2005 Author Share Posted August 6, 2005 (edited) Don't worry...i got the thing working...i dont think ima send to many people just use it for my own personal usage and yea it is movable and can be played in windowed mode if you know where to look... And my windows setting is at 1024 so... Edited August 6, 2005 by kabalarian 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