Skip to content

Commit

Permalink
针对无桌面情况,将pyautogui移到运行处导入
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikaros-521 committed Jun 21, 2024
1 parent 269dea3 commit bdd7ce6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/my_handle.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from datetime import datetime
import traceback
import importlib
import pyautogui

import copy
import re
from functools import partial
Expand Down Expand Up @@ -2056,6 +2056,8 @@ def get_a_local_audio_and_audio_play(key_mapping_config, data):


try:
import pyautogui

# 官方文档:https://pyautogui.readthedocs.io/en/latest/keyboard.html#keyboard-keys
if My_handle.config.get("key_mapping", "enable"):
# 判断传入的数据是否包含gift_name键值,有的话则是礼物数据
Expand Down

0 comments on commit bdd7ce6

Please sign in to comment.