Hello, how to set opening position of software window
More aboutopening position software window
It should save the last position it was opened. Or are you asking on how to do it when writting the program? On a pre-compiled program, no way that I can think of, I even checked on some scripting ways.