I made one more tweak, inifile and window name are now variables
#SingleInstance,Force
OnExit,EXIT
x=
y=
w=100
h=100
pause=1000
color=000000
inifile=Alive.ini
wintitle=Alive
IfExist,%inifile%
{
IniRead,x,%inifile%,Settings,x
IniRead,y,%inifile%,Settings,y
IniRead,w,%inifile%,Settings,w
IniRead,h,%inifile%,Settings,h
IniRead,pause,%inifile%,Settings,pause
}
Gui,+AlwaysOnTop +Resize
Gui,Color,%color%
Gui,Show,x%x% y%y% w%w% h%h%,%wintitle%
WinMove,%wintitle%,,%x%,%y%,%w%,%h%
SetTimer,CHANGE,%pause%
Return
CHANGE:
If color=000000
color=00FF00
Else
color=000000
Gui,Color,%color%
Return
GuiClose:
EXIT:
WinGetPos,x,y,w,h,%wintitle%
IniWrite,%x%,%inifile%,Settings,x
IniWrite,%y%,%inifile%,Settings,y
IniWrite,%w%,%inifile%,Settings,w
IniWrite,%h%,%inifile%,Settings,h
IniWrite,%pause%,%inifile%,Settings,pause
ExitApp