python-3.x - 我们如何像在桌面上一样用python刷新我们的Windows(右键单击刷新)
问题描述
请有人帮助我!我是新来的。我厌倦了在网上搜索它。是否可以使用 python 刷新 Windows?如果有可能,那么我们可以在 python 中使用“os”模块吗?
import os
解决方案
import pyautogui as dp
import time
dp.hotkey('win', 'd')
dp.position(x = 1920,y =540) ### You can change x and y based on the resolution of your pc
dp.click(x = 1920,y =540,button = 'right')
dp.click(x = 1900,y =620)## These coordiantes are not universal, changes as per the pc resolution
推荐阅读
- c# - 关于泛型思维方式的概念问题
- node.js - 无法在 Azure 应用服务中使用 getArchiveLink() 方法获取存档链接
- amazon-ec2 - 在 EC2 AWS 实例的公共网络上使非默认端口可访问
- gitlab - 如何成功创建 gitlab 标签
- python - 如何通过 twython 流关注公共 Twitter 列表?
- svn - SVN乌龟图标不显示
- android - 在 android 应用中通过 wifiDirect 共享字符串和文件
- docker - 在 Docker 中运行时出错找不到指定的框架“Microsoft.AspNetCore.App”,版本“2.1.6”。上
- shell - 如何通过 shell 脚本调用 groovy 文件( filename.groovy )或 groovy 脚本?
- sql - 从 yyyy/yy 到 yyyy 的日期(例如:2016/17 到 2016)