I'd like to use the following script as a standalone executable that can be run from my "main" script. At first I thought I could simply get its PID when I "Run" it and then use ProcessClose to kill it when my main script is ready, but it dawned on me that the _VisualizerExit() code (see below) needs to be executed as part of a clean exit. What would be a reliable way to close it from my main script? Thank you.
#AutoIt3Wrapper_UseX64=n
#include "Bass.au3"
#include "BassExt.au3"
#include <