I was thinking about a solution, and found INIRead and INIWrite. Now, the user can position the GUI like he wants it, if the GUI closes it saves the positioning and the width and the height, and if it starts, it reads the saved information and the GUI comes back like it was before.
IniRead, posx, inf.ini, pos, x IniRead, posy, inf.ini, pos, y IniRead, height, inf.ini, pos, height IniRead, width, inf.ini, pos, width Gui, Add, Some gui stuff........... Gui, Show, x%posx% y%posy% h%height% w%width%, title of your gui here Return GuiClose: WinGetPos, posx, posy, width, height, title of your gui, IniWrite, %posx%, inf.ini, pos, x IniWrite, %posy%, inf.ini, pos, y IniWrite, %width%, inf.ini, pos, width IniWrite, %height%, inf.ini, pos, height ExitApp ;If window closes, WinGetPos gathers information about the window and saves it into an .INI-file
I found this solution soo great, that i want to share it with everyone.
:oops: * Sorry about the bad english but i speak Dutch, i hope u understand * :oops: