Created
January 25, 2016 06:34
-
-
Save curzona/95c2a11d45062427d5af to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import win32com.client | |
import win32gui | |
wmp = win32com.client.dynamic.Dispatch("WMPlayer.OCX") | |
wmp.settings.autoStart = True | |
wmp.settings.volume = 50 | |
wmp.URL = "sample.wma" | |
while wmp.Playstate != 1: | |
win32gui.PumpWaitingMessages() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment