Sign in to follow this  
Followers 0
Mattraks

Having a full screen GUI

4 posts in this topic

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?

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

But thats when you maximize it. I want it to be the same on startup.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0