home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2009 June / maximum-cd-2009-06.iso / DiscContents / digsby_setup.exe / lib / plugins / nowplaying / wmp.pyo (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2009-02-26  |  896 b   |  30 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  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.     
  15.     wmp = CreateObject('WMPlayer.OCX')
  16.  
  17.  
  18. def main():
  19.     clock = clock
  20.     import time
  21.     pprint = pprint
  22.     import pprint
  23.     before = clock()
  24.     pprint(currentSong())
  25.     print 'took', clock() - before
  26.  
  27. if __name__ == '__main__':
  28.     main()
  29.  
  30.