Rad Posted June 2, 2007 Share Posted June 2, 2007 Well I just want to know if its possible (without being overly difficult) to get the size of a taskbar, window title height, border sizes etc... The windows theme related items. Like when you make a window thats 100, 50 the total window size would be like 130, 54 etc And the taskbar height I want to know for making a window appear in the bottom right of the screen but not covering the taskbar Link to comment Share on other sites More sharing options...
smashly Posted June 2, 2007 Share Posted June 2, 2007 Hi, To get the size of the taskbar you can use AutoItSetOption("WinTitleMatchMode", 4) WinGetPos("classname=Shell_TrayWnd")The return is a 4 element array with x, y position and width, hieght of the taskbar. the x,y position is handy to find if the taskbar is at the bottom, top, left or right side of the screen.. as not all people have their taskbar in the default bottom of the screen. As for the other questions, a bit of reading and fidgeting with co-ordinates option would probly find you an answer to working out the window information your after Good luck and cheers Link to comment Share on other sites More sharing options...
Rad Posted June 2, 2007 Author Share Posted June 2, 2007 Thanks a bunch ill use that The x,y position is handy to find if the taskbar is at the bottom, top, left or right side of the screen..as not all people have their taskbar in the default bottom of the screen.Thats actually pretty important come to think of itAny ideas from anyone else on the border/title size? Ill try and find something but usually I have no luck implimenting it with autoit Link to comment Share on other sites More sharing options...
PaulIA Posted June 2, 2007 Share Posted June 2, 2007 Any ideas from anyone else on the border/title size? Ill try and find something but usually I have no luck implimenting it with autoitGetSystemMetrics (or _API_GetSystemMetrics in Auto3Lib) Auto3Lib: A library of over 1200 functions for AutoIt 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