December 1, 201510 yr Newbies 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.
December 1, 201510 yr 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.
Create an account or sign in to comment