win32com, COM, MediaPlayer

Markus von Ehr vonehr at ira.uka.de
Thu Jan 4 07:31:27 EST 2001


The Play command still gives me the error:

File "c:\Programme\Python\win32com\client\dynamic.py", line 207, in 
 _ApplyTypes_
 result = apply(self._oleobj_.invokeTypes, (dispid, LCID, wFlags,
retType, argTypes) + args)
pywintypes.com_error: (-21468283, 'CTL_E_ILLEGALFUNCTIONCALL', (0, None,
None, None, 0, -2146828283), None)

Anybody knows why?

Thanks,

Markus


*****************************************************************

My Code looks like this:

# Test dynamic policy

import time
import win32com
import pythoncom
import win32com.client

w=win32com.client.Dispatch("MediaPlayer.MediaPlayer.1")


w.AutoStart=1
w.Open("c:\Programme\Python\ex1.wav")

w.Play()

while 1:
    time.sleep(1)



More information about the Python-list mailing list