Mattraks Posted November 28, 2008 Share Posted November 28, 2008 Well, I want to have a GUI and it will be full screen (height is @DesktopHeight and width is @DesktopWidth) but those can vary from computer to computer. What I want to do is have the controls be in the same place for each computer it is run on. Is there any way to do this? Link to comment Share on other sites More sharing options...
KaFu Posted November 28, 2008 Share Posted November 28, 2008 If the resolution might change... where do you want to have the controls? Centered? Left side, right side...? Use @DesktopHeight + Width for GuiCreate... Use GUICtrlSetResizing() for Control positioning... Hope that helps OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Mattraks Posted November 28, 2008 Author Share Posted November 28, 2008 But thats when you maximize it. I want it to be the same on startup. Link to comment Share on other sites More sharing options...
martin Posted November 28, 2008 Share Posted November 28, 2008 But thats when you maximize it. I want it to be the same on startup.If you want the gui to be the same on all screens then presumably you want the whole gui to act like a picture which is expanded or shurunk, in which case have this line at the top of your script. Opt("GuiREsizeMode", $GUI_DOCKAUTO) 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