real_tarantoga Posted February 13, 2004 Share Posted February 13, 2004 (edited) salvete, amices! i did'nt find a way to capture a window property like "IsMinimized" "IsMaximized". there's a a perfect way to calculate a maximized windows using the @desktopheight and the WinGetClientSize("Program Manager"), but I fear a "rest risk" and i would really prefer another way to obtain the exact status ... thank you very much for this product and eventually your better ideas than mine greets, r_t Edited February 13, 2004 by real_tarantoga Link to comment Share on other sites More sharing options...
Developers Jos Posted February 13, 2004 Developers Share Posted February 13, 2004 (edited) Don't think theres a function to do it but this script could do it for you. I only tested it in WinXP 1024*768. It looks at the right top middle button ... While 1 ShowMenu(Windowstatus( Wingettitle(""))) sleep(100) Wend Func Windowstatus($WinTitle) AutoItSetOption ("PixelCoordMode",1) $WinPos = WinGetPos ( $WinTitle) $maxc = PixelGetColor ($WinPos[2] - 45, 12) If $maxc <> 16777215 then return ("Current window:" & $WinTitle & " is in Restored mode") else return ("Current window:" & $WinTitle & " is in Maximized mode") EndIF EndFunc ;===================================================== ; Show Splash screen or update its content ;===================================================== Func ShowMenu($l_msg) $W_Title="Test" if WinExists($W_Title) then ControlSetText($W_Title,"","Static1",$l_msg) else SplashTextOn($W_Title,$l_msg,600,200,1,1,4,"Courier",10,600) endif Return 0 EndFunc Edited February 13, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
CyberSlug Posted February 13, 2004 Share Posted February 13, 2004 You could compare the window dimensions to the @DesktopHeight and @DesktopWidth if you know the position of the taskbar.... On Windows XP, ate least, WinGetPos("","Notification Area") ;taskbar infoHere are some related functions that that might help. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
real_tarantoga Posted February 14, 2004 Author Share Posted February 14, 2004 (edited) thank you both! i will have a try of your ideas. i will give you feedback in the next (?) weeks. unfortunately i've a big lack of time due to too much business (well, better than a lack of work ) nice week-end! r_t ps: very interesting time zone differences between our answers Edited February 14, 2004 by real_tarantoga Link to comment Share on other sites More sharing options...
CyberSlug Posted February 16, 2004 Share Posted February 16, 2004 AutoIt 3.0.94 has a function WinGetState Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Valik Posted February 16, 2004 Share Posted February 16, 2004 AutoIt 3.0.94 has a function WinGetState Ahhh, so that's where you got that from. I saw your other post mentioning it and thought, "What's he talking about, there isn't a WinGetState function". Now I see (Haven't tried 3.0.94 obviously, since I'm using the tooltip-enabled version). Link to comment Share on other sites More sharing options...
Administrators Jon Posted February 16, 2004 Administrators Share Posted February 16, 2004 AutoIt 3.0.94 has a function WinGetState I saw this post and thought, waa?? We can't even tell if a window is minimized?? How did that happen? Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ 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