Control startup window size of a program

There is a particular program that I use that whenever it starts up, its window is always too big. I always have to resize it to make it smaller. Is there a way I can control the size of the window when it starts up?


Sometimes holding the Ctrl or Ctrl+Alt keys down when you close a window (X) will keep the size and position of the window next time it opens, it may take several tries.

Or buy this utility http://www.pcmag.com/article2/0,2817,2339650,00.asp

.


Try this:

While, 1
{
 WinWait, ahk_class [Window Class]
 WinActivate,
 WinMove,,,,,1024,768
 WinWaitClose
}

It's an Autohotkey script that will wait for the window to exist, resize it, and then stop until the window closes - meaning it keeps working across window-openings.