[Windows]_唐见良创意程序之微信多开助手
资源介绍:
源码:
import sys
import os
from PyQt5.QtWidgets import QApplication, QPushButton, QVBoxLayout, QWidget, QMessageBox
import subprocessdef launch_wechat():
# 微信安装路径,请根据实际情况调整版本号部分
wechat_path = r'C:\Program Files\Tencent\WeChat\[3.9.12.51]\WeChat.exe'# 检查路径是否存在
if not os.path.exists(wechat_path):
QMessageBox.critical(None, "错误", f"找不到微信程序,请检查路径是否正确。\n{wechat_path}")
returntry:
# 尝试启动微信
subprocess.Popen(wechat_path)
except Exception as e:
QMessageBox.critical(None, "错误", f"启动微信失败:{str(e)}")class WeChatLauncher(QWidget):
def __init__(self):
super().__init__()
self.initUI()def initUI(self):
self.setWindowTitle('唐见良创意程序之微信多开助手')
layout = QVBoxLayout()multi_launch_btn = QPushButton('启动多个微信', self)
multi_launch_btn.clicked.connect(self.launch_multiple_wechats)layout.addWidget(multi_launch_btn)
self.setLayout(layout)def launch_multiple_wechats(self):
for _ in range(2): # 可根据需要调整启动的微信数量
launch_wechat()if __name__ == '__main__':
app = QApplication(sys.argv)
launcher = WeChatLauncher()
launcher.show()
sys.exit(app.exec_())