Python 3 Script to Get Desktop OS Monitor Screen Resolution (Width and Height) in Command Line Full Project For Beginners

 

 

main.py

 

 

from win32api import GetSystemMetrics

print("Width =", GetSystemMetrics(0))
print("Height =", GetSystemMetrics(1))

Leave a Reply