March 18, 201312 yr in a script: Move/Resize Window[Current Window; Height: Get(WindowHeight); Width: Get(WindowWidth); Top: (Get(ScreenHeight) - Get(WindowHeight))/2; Left: (Get(ScreenWidth)-Get(WindowWidth))/2]
March 18, 201312 yr To be persnickety, I recommend Get ( WindowDesktopHeight ) and Get ( WindowDesktopWidth ) instead of Get ( ScreenHeight ) and Get ( ScreenWidth ), in case the user is on Windows with a non-maximized application window.
March 19, 201312 yr I use a pair of custom functions to automatically place the window in the centre of the screen, cf_CenterWindowTop ( height), cf_CenterWindowLeft ( width ) where height and width are the dimensions of the window you are trying to centre. You can find these on www.briandunning.com if you enter the seach terms 'center window' Thanks to Stephen Dolenski, Ocean West Consulting, Inc for sharing these. Brian
Create an account or sign in to comment