monitorlg Posted March 9, 2009 Share Posted March 9, 2009 Hi All, I have designed a GUI using Koda of AUTO IT. The problem i am facing is the size of GUI is varying as resolution changes. I want the GUI to be maximised covering the whole screen of monitort but, the GUI changes with the different inches of monitor. I have made the GUI with a maximised window on a 17'' CRT monitor but when i run the GUI on 22'' LCD it appears as a small window... Can anybody give me suggestion how to keep the GUI size constant. Thanks in Advance. Link to comment Share on other sites More sharing options...
BrettF Posted March 9, 2009 Share Posted March 9, 2009 Hi there,Try searching.http://www.autoitscript.com/forum/index.php?showtopic=79977Other topics on the subject too.Cheers,Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
monitorlg Posted March 9, 2009 Author Share Posted March 9, 2009 Hi there,Try searching.http://www.autoitscript.com/forum/index.php?showtopic=79977Other topics on the subject too.Cheers,BrettThanks for the reply but that post only means that i have to find the screen resolution programattically, I mean is there in API in AutoIT which helps us to set the GUI size equal to the screen size/.... Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted March 9, 2009 Share Posted March 9, 2009 Thanks for the reply but that post only means that i have to find the screen resolution programattically, I mean is there in API in AutoIT which helps us to set the GUI size equal to the screen size/....See the macros @DesktopWidth and @DesktopHeight in helpfile, that's what you need. .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...
martin Posted March 9, 2009 Share Posted March 9, 2009 (edited) Thanks for the reply but that post only means that i have to find the screen resolution programattically, I mean is there in API in AutoIT which helps us to set the GUI size equal to the screen size/.... You can simply maximize the gui and it will fit to the screen. GuiSetState(@SW_MAXIMIZE) But you will need to set the resizing property of the controls in Koda to suit what you want, and you might need to add some code to deal with different sizes of screens. It is possible that the resizing style $GUI_DOCKAUTO will be best but unfortunately Koda doesn't include that in it's options so in that case rather than set any resizing in Koda you could add a single line near the start of your script GUIResizeMode ($GUI_DOCKAUTO) Edited March 9, 2009 by martin Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. 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