BruceCopperField Posted October 14, 2010 Share Posted October 14, 2010 In WinSetState(), the flag parameter showing some names similar to those used by win32 ShowWindow() function, so I guess WinSetState() mainly forwards calls to win32 ShowWindow() and the flag is the nCmdShow parameter we normally supply to the win32 ShowWindow(). But, what are the states returned by WinGetState()? What do they correspond to? Is it the show state found in the WINDOWPLACEMENT structure returned by the win32 GetWindowPlacement() function? Link to comment Share on other sites More sharing options...
trancexx Posted October 14, 2010 Share Posted October 14, 2010 I would say it's a sort of logic interpretation of something. How's that something get is irrelevant. Could be GetWindowPlacement, and could be not. ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
PsaltyDS Posted October 14, 2010 Share Posted October 14, 2010 I believe the bits are assembled from multiple properties, not all acquired from a single function in the Windows API. For example bit 0 (Exists) would have to be determined separately before checking the other states. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
BruceCopperField Posted October 14, 2010 Author Share Posted October 14, 2010 I would say it's a sort of logic interpretation of something. How's that something get is irrelevant. Could be GetWindowPlacement, and could be not.Actually, what I want to know is exactly what that something is. The description in the help file is too general. If they're exactly corresponding to, say, show state returned from GetWindowPlacement then I can use the MSDN as the more concrete reference to interpret the return value of WinGetState. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted October 14, 2010 Share Posted October 14, 2010 If you really want to know then why don't you download the AutoIt source and look for yourself? The only mention of WinGetState() in the changelog is when it was added, and it's very simple, so I think it's pretty safe to assume it still works in a similar/identical way. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface 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