[Python] 纯文本查看 复制代码 from win32com.client import Dispatch
import time
import ctypes
from ctypes import *
LD = ctypes.windll.LoadLibrary
#参数自己设置成FreeCom.dll的路径
freeCOM = LD(R"C:\Users\leo\Desktop\op-0.4.0\tools.dll")
#参数自己设置成op_x86.dll的路径
ret = freeCOM.setupA(bytes(R"C:\Users\leo\Desktop\op-0.4.0\op_x86.dll",encoding="utf-8"))
print("setupA:{}".format(ret))
op = Dispatch("op.opsoft")
print(op.Ver())
op.MoveTo(500,500)
我尝试用SetDllPathA和setupA不对
补充内容 (2023-1-31 14:25):
这是OP插件的开源地址:https://gitee.com/vdaoren/op |