Example #1
0
    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()
Example #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()
Example #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()
Example #4
0
    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()
Example #5
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()
Example #6
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()