Advertisement
EliteAnax17

SSWP

Jun 29th, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. # Stupid Simple Winamp Player (SSWP) v0.15, written by ProjectRevoTPP
  2.  
  3. import winamp
  4. import yaml #for future YAML reading
  5. import sys
  6. import time
  7. import os
  8.  
  9. w = winamp.Winamp()
  10.  
  11. winamppath = "C:\\Program Files (x86)\\Winamp\\winamp.exe"
  12. musicpath = "C:\\Users\\<username>\\Documents\\BRSTMs\\" # example: C:\\Users\\<username>\\Documents\\BRSTMs\\
  13.  
  14. try:
  15. while 1:
  16. gamename = raw_input('Enter the game you want to play from: ')
  17. filename = raw_input('Enter your filename you want to play here: ')
  18. print "Playing " + filename + ".."
  19. filepath = os.path.join(musicpath, gamename, filename)
  20. filepathfix = '"' + filepath + '"'
  21. fullpath = winamppath + " " + filepathfix
  22. print "debug: ", fullpath
  23. w.playSoloFile(fullpath)
  24. except:
  25. print "Error playing. Quitting script in 5 seconds.."
  26. sys.sleep(5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement