def run(self, url, selectGame, side): if selectGame == None or side == None: return control.resolve(int(sys.argv[1]), True, control.item(path=url)) command = ['java', '-jar', jarFile, selectGame, side] startupinfo = None if os.name == 'nt': startupinfo = subprocess.STARTUPINFO() startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW self.process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, startupinfo=startupinfo) if os.name == 'posix': success = False success, output = FuckNeulionClient.request_proxy_hack( selectGame, side) control.sleep(1000) control.resolve(int(sys.argv[1]), True, control.item(path=url)) for i in range(0, 240): if self.isPlayingVideo(): break control.sleep(1000) while self.isPlayingVideo(): control.sleep(1000) control.sleep(5000)
def run(self, url, selectGame ,side): if selectGame == None or side == None: return control.resolve(int(sys.argv[1]), True, control.item(path=url)) command = ['java','-jar',jarFile,selectGame,side] startupinfo = None if os.name == 'nt': startupinfo = subprocess.STARTUPINFO() startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW self.process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, startupinfo=startupinfo) if os.name == 'posix': success = False success, output = FuckNeulionClient.request_proxy_hack(selectGame,side) control.sleep(1000) control.resolve(int(sys.argv[1]), True, control.item(path=url)) for i in range(0, 240): if self.isPlayingVideo(): break control.sleep(1000) while self.isPlayingVideo(): control.sleep(1000) control.sleep(5000)