首页 > 解决方案 > 我们如何像在桌面上一样用python刷新我们的Windows(右键单击刷新)

问题描述

请有人帮助我!我是新来的。我厌倦了在网上搜索它。是否可以使用 python 刷新 Windows?如果有可能,那么我们可以在 python 中使用“os”模块吗?

import os

标签: python-3.x

解决方案


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

推荐阅读