Hi Jaakon!
back from vacation. used the first warm days over here in germany for riding my motor bike 8)
1) When you minimize a window for the first time (e.g. it is unknown so far), i would really like to have the "Custom Name"-Dialog opened automatically.
i will include this feature as a option into the next version. not everyone (including me) will use this feature as default, so it will be initially turned off.
2) Is it possible to set the custom icon automatically (e.g. first icon in the application's .exe-file)?
well, basically this is already the default behaviour (look into source code line 466 ff):
Min2Tray retrieves the process name (i.e. "notepad.exe").
then it checks if the user has already set a (generic) custom icon for this app.
if none is set, it checks "SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\notepad.exe" for the full app-path (AHK does not give the path of app back).
if nothing is found, Min2Tray recursively scans %A_WinDir% and %A_ProgramFiles% for "notepad.exe". if the exe is not found in there, Min2Tray falls back to the default icon.
if the program you minimized is installed in a differnt location (not %A_WinDir%="C:\Windows" or %A_ProgramFiles%="C:\Program Files") Min2Tray cannot find any suitable icon file.
there could even be more situations where no icon file can be found (i.e. no icon file within "appname.exe").
hope this helped a little bit...
Junyx