Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3279 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

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.

Posted

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.

  • Like 1

This topic is 3279 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.