There are a couple of globally SHARED variables (read only) available for your convenience. These are mainly numbers and paths initialized by the GuiTools init procedure. Note that all path specifications will end with a trailing backslash, hence you can directly add your sub-path and/or filename to it.
appProgID$ (STRING)
- The unique ID of this program (every running GuiTools based program will get its own).
appHomeDrive$ (STRING)
- This program's home drive, ie. where the executable is located (eg. "C:\").
appHomePath$ (STRING)
- This program's home directory, ie. where the executable is located (eg. "C:\qb64\").
appFullExe$ (STRING)
- The full path/name of this program's executable file (eg. "C:\qb64\GuiApp.exe").
appExeName$ (STRING)
- The name only of this program's executable file (eg. "GuiApp.exe").
appPCName$ (STRING)
- Is this computer's name from environment set (eg. "My Computer").
appLocalDir$ (STRING)
- The local appdata folder from environment set (eg. "C:\Users\RhoSigma\AppData\Local\").
- Your permanent user dependent settings and config files should go here.
appTempDir$ (STRING)
- The temporary folder from environment set (eg. "C:\Users\RhoSigma\AppData\Local\temp\").
- Your temporary files should go here, you may use GetUniqueID$() to obtain unique file names.
appLastErr% (INTEGER)
- The last occurred runtime error number (if any).