def __init__(self, pika_windowname, _score_address):
self.score_address = _score_address
self.hwnd = win32gui.FindWindowEx(0, 0, None, pika_windowname)
self.inputAction = action.action(_windowname=pika_windowname, _interval_time=self.interval_time)
self.stateReader = st.state(_hwnd=self.hwnd)
self.stateInit()
self.comScoreBuffer = 0
self.agentScoreBuffer = 0
self.comScoreOld = 0
self.agentScoreOld = 0
self.isGaming = False
self.flag = 10
self.isOpened = True
self.isFinished = True
self.memmoryReadThread = threading.Thread(target=self._asyncGetScoreValue)
self.pixelReadThread = threading.Thread(target=self._asyncGetState)
self.memmoryReadThread.start()
self.pixelReadThread.start()
评论列表
文章目录