开发各种坑的记录
解决Electron加载带jquery的项目报错问题
https://cloud.tencent.com/developer/article/1051960
<!-- Insert this line above script imports -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<!-- normal script imports etc -->
<script src="scripts/jquery.min.js"></script>
<script src="scripts/vendor.js"></script>
<!-- Insert this line after script imports -->
<script>if (window.module) module = window.module;</script>
PPT放映状态无法发送信号翻页
因为windows 10/11, PPT各种安全策略(也就是我不知道具体说法、名称)导致 相当于管理员权限打开的
所以哪怕是 pyautogui.click(clicks=1) 也要管理员权限才能控制
最简单的方案就是管理员权限运行程序
还有 windows 10 里的 python 安装 elevate库,
from elevate import elevate
import time
import pyautogui
elevate()
pyautogui.moveTo(400, 10, duration=0.25)
pyautogui.click(clicks=2)
time.sleep(0.4)
pyautogui.click(clicks=1)
Enjoy Reading This Article?
Here are some more articles you might like to read next: