home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 February / maximum-cd-2011-02.iso / DiscContents / digsby_setup85.exe / lib / plugins / nowplaying / wmp.pyo (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2010-11-24  |  893 b   |  29 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. from comtypes.client import CreateObject
  5. from gui.native.win.process import process_list
  6. WMP_PROCESS_NAME = 'wmplayer.exe'
  7.  
  8. def currentSong(processes):
  9.     if processes is None:
  10.         processes = process_list()
  11.     
  12.     if WMP_PROCESS_NAME not in processes:
  13.         return None
  14.     wmp = CreateObject('WMPlayer.OCX')
  15.  
  16.  
  17. def main():
  18.     clock = clock
  19.     import time
  20.     pprint = pprint
  21.     import pprint
  22.     before = clock()
  23.     pprint(currentSong())
  24.     print 'took', clock() - before
  25.  
  26. if __name__ == '__main__':
  27.     main()
  28.  
  29.