It was entirely based on the MCI.ahk library. Does anyone know if this old library can still be used in Win 10 and the latest version of AHK or is it obsolete?
Does anyone know of another method to get the total song length?
MCI.ahk
https://github.com/camerb/AHKs/blob/master/thirdParty/MCI.ahk
Edit, here is a simple play script using the MCI library. The "Open" command always returns an error.
Code: Select all
#Include, MCI.ahk
song = %A_ScriptDir%\abbeybellsfx.wav
Gui, Add, Button, x5 y5 w100 h25 vb1 gb1, Play
Gui, Show, w110 h50 , Simple MCI Player
Return
b1:
hMedia:=MCI_Open(song)
MsgBox, %hMedia%
MCI_Play(hMedia)
Return