[python-win32] COM works from IDLE but not when file executed from Windows Explorer

2007-03-14 Thread new2com
Installed: Python25, pywin32-210.win32-py2.5.exe Being new to COM, I have a simple question. When I execute the following code from within IDLE, I hear the mp3 file played out but when I run the file from Windows Explorer I get no sound (and no errors) ? I'm sure the answer is very simple ! (

Re: [python-win32] COM works from IDLE but not when file executed from Windows Explorer

2007-03-14 Thread Tim Roberts
new2com wrote: Installed: Python25, pywin32-210.win32-py2.5.exe Being new to COM, I have a simple question. When I execute the following code from within IDLE, I hear the mp3 file played out but when I run the file from Windows Explorer I get no sound (and no errors) ? By run the file

Re: [python-win32] COM works from IDLE but not when file executed from Windows Explorer

2007-03-14 Thread Mark Hammond
Installed: Python25, pywin32-210.win32-py2.5.exe Being new to COM, I have a simple question. When I execute the following code from within IDLE, I hear the mp3 file played out but when I run the file from Windows Explorer I get no sound (and no errors) ? I'm sure the answer is very simple

Re: [python-win32] COM works from IDLE but not when file executed from Windows Explorer

2007-03-14 Thread Gabriel Genellina
En Wed, 14 Mar 2007 13:41:17 -0300, Tim Roberts [EMAIL PROTECTED] escribió: if __name__ == __main__: mp = Dispatch(WMPlayer.OCX) tune = mp.newMedia('my_file.mp3') mp.currentPlaylist.appendItem(tune) mp.controls.play() raw_input(Press Enter to stop playing)