Had this code saved from somewhere in the forum, made some tweaks to allow volume to be changed with the keyboard arrows. The only thing you have to give is a processname. Adapt to your needs. #include-once ;https://www.autoitscript.com/forum/topic/174460-is-there-a-way-to-detect-any-sound-file-played/ ;Special Thanks to Danyfirex 02/08/2015 #include <WinAPIProc.au3> #include <Array.au3> #include <Misc.au3> Global Const $s