do ix= GetDeviceWidth() iy= GetDeviceHeight() print("X: "+str(ix)) print("Y: "+str(iy)) if getpointerpressed()=1 then exit sync() loop end