rivet Posted April 12, 2007 Posted April 12, 2007 I have an old script for centering a window, but now on an intel mac it is not working, any suggestions? Distance from Top (Get ( ScreenHeight ) - Abs(Get(SystemPlatform) + 1) * 150 - Get ( WindowContentHeight )-35) / 2 Distance from Left (Get ( ScreenWidth ) - (Get ( WindowContentWidth )+14)) / 2 //14 add to width for mac scroll bar
Fitch Posted April 13, 2007 Posted April 13, 2007 I think the problem is Abs(Get(SystemPlatform) + 1) That's like saying Abs( 1 + 1 ) // =2 on Intel Mac Abs( -1 + 1 ) // =0 on PPC Mac Abs( -2 + 1 ) // =1 on Win2000 or XP should be Abs(Get(SystemPlatform)) + 1 Seems like it wouldn't have worked right before either!
Recommended Posts
This topic is 6436 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