python : การหาค่า windows resolution ปัจจุบัน
#ต้องติดตั้ง pywin32
from win32api import GetSystemMetrics as resolution
resoW = resolution(0)
resoH = resolution(1)
#แบบไม่ต้องติดตั้ง pywin32
import ctypes
user32 = ctypes.windll.user32
screensize = user32.GetSystemMetrics(0), user32.GetSystemMetrics(1)
ความคิดเห็น
แสดงความคิดเห็น