规范资源位置

This commit is contained in:
965 2023-06-03 11:47:20 +08:00
parent 4ba21f0965
commit ce3ac40e9c
20 changed files with 13 additions and 349047 deletions

View File

@ -187,7 +187,7 @@ class mainthread:
self.alert_box("缺少必要参数") self.alert_box("缺少必要参数")
#fontlist = ("./resources/msyh.ttc", "./resources/STXINGKA.TTF", "./resources/simkai.ttf", "./resources/AdobeHeitiStd-Regular.otf", "./resources/simsun.ttc", "./resources/SIMYOU.TTF") #ontlist = ("./resources/fonts/msyh.ttc", "./resources/fonts/STXINGKA.TTF", "./resources/fonts/simkai.ttf", "./resources/fonts/AdobeHeitiStd-Regular.otf", "./resources/fonts/simsun.ttc", "./resources/fonts/SIMYOU.TTF")
fontlist = ("msyh.ttc", "STXINGKA.TTF", "simkai.ttf", "AdobeHeitiStd-Regular.otf", "simsun.ttc", "SIMYOU.TTF") fontlist = ("msyh.ttc", "STXINGKA.TTF", "simkai.ttf", "AdobeHeitiStd-Regular.otf", "simsun.ttc", "SIMYOU.TTF")
if __name__ == '__main__': if __name__ == '__main__':

BIN
resources/extra/target.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 279 B

File diff suppressed because it is too large Load Diff

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

Before

Width:  |  Height:  |  Size: 579 KiB

After

Width:  |  Height:  |  Size: 579 KiB

12
temp.py
View File

@ -1 +1,13 @@
import pyautogui
# 获取屏幕分辨率
screen_width, screen_height = pyautogui.size()
# 获取按钮的坐标
button_x, button_y = pyautogui.locateCenterOnScreen('button.png')
# 移动鼠标到按钮的位置
pyautogui.moveTo(button_x, button_y)
# 单击按钮
pyautogui.click()