Forum: Poser Python Scripting


Subject: Useful Code Snippets

structure opened this issue on Jun 27, 2019 ยท 94 posts


structure posted Wed, 18 May 2022 at 2:57 PM Forum Coordinator

get screen resolution


import wx

def get_Screen_Resolution():
    try:
        # method to get screen size
        return wx.GetDisplaySize()
    except:
        # alternate method to get screen size
        return wx.SystemSettings.GetMetric(wx.SYS_SCREEN_X), wx.SystemSettings.GetMetric(wx.SYS_SCREEN_Y)

SCREENW, SCREENH = get_Screen_Resolution()
print((SCREENW, SCREENH))




Locked Out