import pyautogui as pag
import pyautogui
import time
python -m pip install piwin32
pip install pywin32
import win32gui, win32con, win32api
from PyQt5.QtWidgets import QApplication
import win32gui
import sys
import aircv as ac
import os
class JB:
# 脚本
class JB:
# 初始化
def __init__(self):
self.hwnd = None
# 获取工作目录
ml = re.sub(r'(LootHoarder.exe)',
"",
os.path.abspath(__file__),
count=0,
flags=re.M | re.I)
self.ml = ml
启动
def qd(self):
# 启动
win32api.ShellExecute(0,
'open',
'"C:\Program Files\Adobe\Adobe Photoshop CC 2018\Photoshop.exe"',
"",
"",
1)
time.sleep(5)