0

Please somebody help me! I'm new here. I am tired of searching it online. Is it possible to do refresh the Windows with python? If it is possible, then can we do it with 'os' module in python?

import os
  • This question/answer might be helpful. https://stackoverflow.com/questions/1517038/python-refresh-reload – Rick Colgan Jan 11 '20 at 05:36
  • @Rick Colgan, I think he did not mean to reload package, but wants to call some windows api which in turn will do the same thing as pressing right click on desktop and clicking on refresh. – mergenchik Jan 11 '20 at 05:41
  • @mergenchik Yes, Exactly! I want the same like you said.Thank you man! – Einstein Follower Jan 11 '20 at 14:50

1 Answers1

0
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