コード例 #1
0
def currentSong(processes):
    if processes is None:
        processes = process_list()

    if not WMP_PROCESS_NAME in processes:
        return

    wmp = CreateObject("WMPlayer.OCX")
コード例 #2
0
ファイル: wmp.py プロジェクト: AlexUlrich/digsby
def currentSong(processes):
    if processes is None:
        processes = process_list()

    if not WMP_PROCESS_NAME in processes:
        return

    wmp = CreateObject("WMPlayer.OCX" )
コード例 #3
0
ファイル: nowplaying.py プロジェクト: sgricci/digsby
    def running(self, processes=None):
        '''
        Checks the list of processes (or process_list()) and returns whether or not the
        program is running.

        If the process is running, makes sure there is a handle to the process (or whatever)
        If the process is not running, makes sure to release the handle to the process (or whatever).
        '''
        if processes is None:
            from gui.native.win.process import process_list
            processes = process_list()

        running = self.PROCESS_NAME in processes

        if running:
            self._get_instance()
        elif not self.running:
            self._release()

        return running
コード例 #4
0
ファイル: diagnostic.py プロジェクト: AlexUlrich/digsby
 def get_processes(self):
     from gui.native.win.process import process_list
     return '\r\n'.join(process_list())
コード例 #5
0
ファイル: settings.py プロジェクト: AlexUlrich/digsby
 def is_running(self):
     return self.process_name in processes.process_list()