Think of something that you wish Authorware could do but it doesn't?  Let the our good friends at Macromedia know via the wishlist.

Please let us know if you find any of the materials on this site inappropriate or offensive. Please include the url and why the material should be reviewed.

Comments and questions about the site are also welcome. Please no Authorware questions, use the AWARE list.

Back

1082 - What is the script to make sure the presentation window is centered, no mattter what the screen resolution is?

by - Joe Ganci


I have written an Authorware application. In it, I've set the File Properties to center the presentation window on the screen. On some operating systems, it doesn't seem to work. Is there a way I can do it through a script?

Sure, put the following in a Calc at the top of your file:

MoveWindow(ScreenHeight / 2 - WindowHeight / 2, ScreenWidth / 2 - WindowWidth / 2)

This is using Authorware's internal MoveWindow function along with Authorware's system variables ScreenHeight, WindowHeight, ScreenWidth, and WindowWidth.

There are 0 reviews
Add your review
Back