예제 #1
0
파일: army.py 프로젝트: uees/diablo3Macro
    async def task_press_2(self):
        while BOT_SWITCH.is_set():
            await asyncio.sleep(0.11)
            keyboard.press_and_release('2')

        BOT_SWITCH.wait()
        await self.task_press_2()
예제 #2
0
    async def task_press_4(self):
        """黑人"""
        while BOT_SWITCH.is_set():
            keyboard.press_and_release('4')
            await asyncio.sleep(1)

        BOT_SWITCH.wait()
        await self.task_press_4()
예제 #3
0
    async def task_press_2(self):
        """回精气"""
        while BOT_SWITCH.is_set():
            keyboard.press_and_release('2')
            await asyncio.sleep(1.1)

        BOT_SWITCH.wait()
        await self.task_press_2()
예제 #4
0
파일: yinna.py 프로젝트: uees/diablo3Macro
    async def task_press_3(self):
        """释放飓风转5秒内获得增益效果"""
        while BOT_SWITCH.is_set():
            keyboard.press_and_release('3')
            await asyncio.sleep(4.9)

        BOT_SWITCH.wait()
        await self.task_press_3()
예제 #5
0
파일: hotkey.py 프로젝트: uees/diablo3Macro
 def toggle(self):
     self.is_running = not self.is_running
     if BOT_SWITCH.is_set():
         BOT_SWITCH.clear()
         playsound(f"{BASE_DIR}/resources/bot_end.mp3")
     else:
         BOT_SWITCH.set()
         playsound(f"{BASE_DIR}/resources/bot_start.mp3")
예제 #6
0
    async def task_press_3(self):
        """3键绑定劲凤煞"""
        while BOT_SWITCH.is_set():
            # logger.info("press key 3")
            keyboard.press_and_release('3')
            await asyncio.sleep(5.75)

        BOT_SWITCH.wait()
        await self.task_press_3()
예제 #7
0
    async def task_press_2(self):
        """2键绑定幻身回内力"""
        while BOT_SWITCH.is_set():
            # logger.info("press key 2")
            keyboard.press_and_release('2')
            await asyncio.sleep(5)

        BOT_SWITCH.wait()
        await self.task_press_2()