Newbies MightyCrow Posted December 1, 2015 Newbies Posted December 1, 2015 Hi I'm new so sorry if this is the wrong place to post this. Essentially I'm after a script that runs on startup that automatically centers the window instead of putting it in the top left of the screen. I already have a script that automatically resizes the window but I'd like it to display centrally. Thanks in advance.
Fitch Posted December 1, 2015 Posted December 1, 2015 Get(WindowDesktopWidth) - Get(WindowWidth) ... gives you the difference between the screen width and the width of your window. (On Windows, the desktop width is actually the width of the app window -- please specify your OS.) You can then divide the result by 2, and specify that as the distance from left. There are similar functions to derive the distance from top. Welcome to FM Forums. 1
Recommended Posts
This topic is 3627 days old. Please don't post here. Open a new topic instead.
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