Is possible detect screen resolution?

Larsen187's icon

Is possible detect screen resolution without use any external?
If somebody know, please post some example.
Thankyou !

Ben Bracken's icon

you can get the screen size with [screensize]. If you need to know more about your monitor, check out jit.displays.

-Ben

Larsen187's icon

Thankyou ben

Now i dont know how do simple thing

Main monitor is configured 800 x 600

screensize report this infomration: 0 0 800 600

What im trying to do is compare if screen is configured to that resolution, if the resolution is 800 x 600 i want have value out 1 , if different , value output should be 0
How can compare that string of numbers ?

Tim Lloyd's icon

In this case, it seems easiest to add the two numbers, and then do [== 1400].

Larsen187's icon

Tim, is possible see some example : )
Please !

Bas van der Graaff's icon

Larsen, what is there to show in an example?

Max Patch
Copy patch and select New From Clipboard in Max.

Btw, I don't really like the addition method, Tim, since there may be equal totals, although not commonly :P:
768 + 576 (PAL) = 854 + 480 (WVGA)
1280 + 854 = 1366 + 768

Roman Thilenius's icon

but tim, this will also report "true" when the monitor is in 700*700 mode.

mattyo's icon
Max Patch
Copy patch and select New From Clipboard in Max.

you could use [match]:

M

Larsen187's icon

Thank you very usefull.

Tim Lloyd's icon

You're all correct lol, I guess I'm a little out of touch with the range of screen resolutions whose sides would sum equally.......I didn't think of any after a casual contemplate.

But absolutely! Don't add and compare then :)