https://forum.inductiveautomation.com/t/scripting-with-the-window-size/6145/6?u=manjuyadav95.m
I'm getting my system display resolution from vision but not in perspective as it is returning some different resolution ..
system display resolution is : 1366 * 768
Vision o/p: 1366 * 768
Perspective o/p: 1024*768
below code worked in vision but giving different values when used in perspective.. please help
gd=java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice()
width = gd.getDisplayMode().getWidth()
height = gd.getDisplayMode().getHeight()
print('width',width,' height',height)
window=system.gui.getParentWindow(event)
window.setSize(int(round(width*0.25)), int(round(height*0.65)))