Is there a way of detecting that the PC's sound card is being used? I want to trigger an event each time audio is played.
I've not tried that. maybe later. So you can do something like this: #include <WinAPICom.au3>
#include <Process.au3>
#include <Array.au3>
Opt("MustDeclareVars", 1)
Global Const $CLSCTX_INPROC_SERVER = 0x01 + 0x02 + 0x04 + 0x10
Global Enum $eRender, $eCapture, $eAll, $EDataFlow_enum_count
Global Enum $AudioSessionStateInactive, $AudioSessionStateActive, $AudioSessionStateExpired
Global Const $eMultimedia = 1
Global