input_controller.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:SerpentAI 作者: SerpentAI 项目源码 文件源码
def drag_screen_region_to_screen_region(self, start_screen_region=None, end_screen_region=None, duration=1, offset=(0, 0), game=None):
        start_screen_region_coordinates = self._extract_screen_region_coordinates(start_screen_region, game=game)
        end_screen_region_coordinates = self._extract_screen_region_coordinates(end_screen_region, game=game)

        pyautogui.moveTo(*start_screen_region_coordinates)

        coordinates = (end_screen_region_coordinates[0] + offset[0], end_screen_region_coordinates[1] + offset[1])
        pyautogui.dragTo(*coordinates, duration=duration)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号