Changing to COM.ahk ...
Code:
#Include IEControl.ahk ; looks like still necessary otherwise it throws out an 'Release(pctl)' error ???
; #Include CoHelper.ahk
#Include COM.ahk
sUrl := "C:\WINDOWS\clock.avi" ; Replace it with your media file.
GoSub, GuiStart
Gui, +Resize +LastFound
Gui, Show, w800 h600 Center, WMP
hGui := WinExist()
pwmp := COM_CreateObject("WMPlayer.OCX")
COM_AtlAxAttachControl(pwmp, hGui)
COM_Invoke(pwmp, "URL=", sUrl)
COM_Invoke(pwmp, "Play")
Sleep, 1000
pmda := COM_Invoke(pwmp, "CurrentMedia")
name := COM_Invoke(pmda, "Name")
duration := COM_Invoke(pmda, "durationString")
Sleep, 2000
pctl := COM_Invoke(pwmp, "controls")
Position := COM_Invoke(pctl, "currentPosition")
COM_Invoke(pctl, "currentPosition=", Position+6)
Return
GuiStart:
COM_CoInitialize()
COM_AtlAxWinInit()
Return
GuiClose:
Gui, Destroy
Release(pctl)
Release(pmda)
Release(pwmp)
COM_AtlAxWinTerm()
COM_CoUninitialize()
ExitApp
Made it run !

and failed immediately afterwards

...
Code:
---------------------------
COM Error Notification
---------------------------
Function Name: "Play"
ERROR: Unknown name.
(0x80020006)
Will Continue?
---------------------------
Yes No
---------------------------
Code:
---------------------------
COM Error Notification
---------------------------
Function Name: "currentPosition"
ERROR: Does not support a collection.
(0x80020011)
ERROR2: Type mismatch.
(0x80020005)
Will Continue?
---------------------------
Yes No
---------------------------
