[英]Pyautogui doesn't click windows privacy settings
I want to create a simple python script that enables and disables windows camera and mic settings when i have a zoom meeting.我想创建一个简单的 python 脚本,当我有一个缩放会议时启用和禁用 windows 相机和麦克风设置。 But pyautogui doesnt seem to move and click the On/Off switch in windows privacy settings.
但是 pyautogui 似乎没有移动并单击 windows 隐私设置中的 On/Off 开关。
It doesn't click the final button [in red]它没有点击最终按钮[红色]
Code代码
import pyautogui
import time
# Clicks windows open settings then open privacy settings all that.
pyautogui.moveTo(x=372, y=265)
pyautogui.click()
Run your script with Administrative privileges.使用管理权限运行您的脚本。
If you are running your script via CMD/Powershell then run CMD/Powershell with administrative privileges.如果您通过 CMD/Powershell 运行脚本,则使用管理权限运行 CMD/Powershell。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.