vladedoty Posted March 8, 2013 Share Posted March 8, 2013 Is there a function to determine active and inactive title bar sizethx in advance if anyone has a solution to thisi tried searching but did not find any answers Link to comment Share on other sites More sharing options...
PhoenixXL Posted March 8, 2013 Share Posted March 8, 2013 title bar size i guess isn't affected by the focushave you tried _Winapi_SystemParametersInfo My code: PredictText: Predict Text of an Edit Control Like Scite. Remote Gmail: Execute your Scripts through Gmail. StringRegExp:Share and learn RegExp.Run As System: A command line wrapper around PSEXEC.exe to execute your apps scripts as System (LSA). Database: An easier approach for _SQ_LITE beginners. MathsEx: A UDF for Fractions and LCM, GCF/HCF. FloatingText: An UDF for make your text floating. Clipboard Extendor: A clipboard monitoring tool. Custom ScrollBar: Scroll Bar made with GDI+, user can use bitmaps instead. RestrictEdit_SRE: Restrict text in an Edit Control through a Regular Expression. Link to comment Share on other sites More sharing options...
vladedoty Posted March 8, 2013 Author Share Posted March 8, 2013 not really sure how to use it any help would be appreciated i looked over the autoit help on the function but still dont understand it thx again Link to comment Share on other sites More sharing options...
FireFox Posted March 8, 2013 Share Posted March 8, 2013 @vladedoty I'm afraid the _Winapi_SystemParametersInfo is not efficient for your need. The caption size depends on the window style and as far as I'm concerned the results I got from this function and rarely the good ones. Tell me if it's for your own script or for an external app so I can give you a workaround. Link to comment Share on other sites More sharing options...
vladedoty Posted March 8, 2013 Author Share Posted March 8, 2013 for my own script Link to comment Share on other sites More sharing options...
FireFox Posted March 8, 2013 Share Posted March 8, 2013 Func _GUIGetCaptionHeight($hGUI) Local $htmpGUI = 0, $aGUIPos[1], $atmpGUIPos[1] $htmpGUI = GUICreate("", Default, Default, 0, 0, $WS_CHILD, -1, $hGUI) $aGUIPos = WinGetPos($hGUI) $atmpGUIPos = WinGetPos($htmpGUI) GUIDelete($htmpGUI) Return $atmpGUIPos[1] - $aGUIPos[1] EndFunc Link to comment Share on other sites More sharing options...
vladedoty Posted March 8, 2013 Author Share Posted March 8, 2013 thx its exactly what i needed one last question and ill quit bugging u what about a function to check if font smoothing is enabled/disabled Link to comment Share on other sites More sharing options...
FireFox Posted March 8, 2013 Share Posted March 8, 2013 (edited) what about a function to check if font smoothing is enabled/disabledWithout searching on the forum I don't know. You should rename this topic or start a new one if you want to get answers on this new question.Br, FireFox. Edited March 8, 2013 by FireFox Link to comment Share on other sites More sharing options...
LarryDalooza Posted March 8, 2013 Share Posted March 8, 2013 Windows API... GetSystemMetrics ... see Windows API info for usage AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
FireFox Posted March 9, 2013 Share Posted March 9, 2013 Windows API... GetSystemMetrics ... see Windows API info for usageActually my reply (#4) was refering to that function. 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