Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Stupid Simple Winamp Player (SSWP) v0.15, written by ProjectRevoTPP
- import winamp
- import yaml #for future YAML reading
- import sys
- import time
- import os
- w = winamp.Winamp()
- winamppath = "C:\\Program Files (x86)\\Winamp\\winamp.exe"
- musicpath = "C:\\Users\\<username>\\Documents\\BRSTMs\\" # example: C:\\Users\\<username>\\Documents\\BRSTMs\\
- try:
- while 1:
- gamename = raw_input('Enter the game you want to play from: ')
- filename = raw_input('Enter your filename you want to play here: ')
- print "Playing " + filename + ".."
- filepath = os.path.join(musicpath, gamename, filename)
- filepathfix = '"' + filepath + '"'
- fullpath = winamppath + " " + filepathfix
- print "debug: ", fullpath
- w.playSoloFile(fullpath)
- except:
- print "Error playing. Quitting script in 5 seconds.."
- sys.sleep(5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement