This is to hide to tray the window with open-webui ( https://openwebui.com )
The post about this is at: https://www.autoitscript.com/forum/topic/212908-open-webui-totray-help-area/

When running the executable, no other files are needed.
But if you run it as script, keep the icons there.
Also, the executable will use the icons in the folder if found. ( if make your own icons )
No installer, portable. Just run it in some random folder.

No tested anywhere other than my Win11 PC. Hence the link to the site. You can make a post if you need help there.

Command parameters are:
/runUpdate = to run the update command (new in v0.0.0.3)
/hide = to hide overiding the ini declaration
/show = to show overiding the ini declaration
/exit = do one of the above and exit the tray icon, if that is what you'd like. It'll wait 2 secs before exiting.


v0.0.0.2
Changed the way it waits for the terminal to be ready.
If the "title" in the ini file is empty, the command is used as part of the title.


v0.0.0.3
Added "cmdForUdate". The default is the command to update open-webui, but you can put anything there.
If "cmdForUdate" is empty, the context menu will not show the option. So that's how you hide the menu entry.

Added environment variables. By default sets or adds "WEBUI_AUTH=True". If you don't want it set to "WEBUI_AUTH=".
To have these be applied set DoEnvSet=1

Added, given that you may not ever double click to see the window, to do something else.
Added something else. There is a ExtraCmd area where you can have an extra menu entry that executes whaever you declare.
For more help look in https://www.autoitscript.com/autoit3/docs/functions/ShellExecute.htm because that is what it does/runs.
The default example is to open your current session of open-webui ( http://localhost:8080/?temporary-chat=true )
I did that because that's what I'll use it for.

TODO: a GUI for all these setting would be nice. Maybe.


v0.0.0.4
Fixed default phython's expected folder
Fixed default run and update commands
Better INI file comment handling
Some function refactoring.


v0.0.0.5
Added an icon to show while not online ( optional default ).
Changed script reload to run via .lnk as otherwise I can not see the it's own icon on the Task Manager running as script.
Added key combination ( Ctrl + Shift ) that when pressed, on exit will not close the window.


v0.0.0.6
Added the ability to have more user defined menu entries.
Added a finder of python if open-webui is running at 1st run of this script.
Fixed the window finding so it will work on other envirinments ( Server 2022 in the case of my testing ).

