wakewatcher
Joined: 15 Jul 2006 Posts: 139
|
Posted: Wed May 09, 2007 10:04 pm Post subject: Determining Screen size |
|
|
I've got some code that runs quicktimes in a browers. I scale the video to fit the browers in my previous version I did this: | Code: |
splitpath, A_WorkingDir,playfoldername
WinMaximize %playfoldername%
WinGetActiveStats, title,width,height,X,Y
if (width < 1470)
GoSub ScaleIt
|
This seemed to work ok as the maximization of the window wasn't noticeable. However now I've added a Gui front end and now it tries to maximize the Gui form instead of an explorer window. In fact to make it work I changed it to: | Code: | Gui, Show, Maximize
WinGetActiveStats, title,width,height,X,Y
Gui, Show, Restore
if (width < 1470)
GoSub ScaleIt
| A couple of things. The gui form distractedly maximizes and then restores and basically there has to be a better way to determine the screen size. Suggestions? |
|