Vantha Posted June 25, 2024 Report Share Posted June 25, 2024 Is it possible to read the screen resolution from JavaScript scripts? If so, how? Quote Link to comment Share on other sites More sharing options...
Stan` Posted June 25, 2024 Report Share Posted June 25, 2024 let screen = guiObj.parent.getComputedSize(); let h = screen.bottom - screen.top; let w = screen.right - screen.left; let iw = h * 2; Just pick the highest element in the page you can grab. 1 Quote Link to comment Share on other sites More sharing options...
Vantha Posted June 25, 2024 Author Report Share Posted June 25, 2024 Wow, that's so much more simple than I hoped for. It even allows to get the actually displayed size for GUI objects directly as well. Thanks. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.