MCI library still usable?
Posted: 28 Jan 2019, 08:43
Dug out one of my old Win XP scripts because I have a new use for it. It is a media player that would retrieve the total length of a track and the time left. Now, on Win 10, it doesn't work at all and I can find no apparent reason.
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.
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