Example #1
0
def currentSong(processes):
    if processes is None:
        processes = process_list()

    if not WMP_PROCESS_NAME in processes:
        return

    wmp = CreateObject("WMPlayer.OCX")
Example #2
0
def currentSong(processes):
    if processes is None:
        processes = process_list()

    if not WMP_PROCESS_NAME in processes:
        return

    wmp = CreateObject("WMPlayer.OCX" )
Example #3
0
    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
Example #4
0
 def get_processes(self):
     from gui.native.win.process import process_list
     return '\r\n'.join(process_list())
Example #5
0
 def is_running(self):
     return self.process_name in processes.process_list()