Is possible detect screen resolution?

Oct 21, 2010 at 5:18am

Is possible detect screen resolution?

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

#52858
Oct 21, 2010 at 5:29am

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

-Ben

#189998
Oct 21, 2010 at 5:47am

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 ?

#189999
Oct 21, 2010 at 6:16am

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

#190000
Oct 21, 2010 at 6:57am

Tim, is possible see some example : )
Please !

#190001
Oct 21, 2010 at 10:59am

Larsen, what is there to show in an example?

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

– Pasted Max Patch, click to expand. –
#190002
Oct 21, 2010 at 12:55pm

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

#190003
Oct 21, 2010 at 1:51pm

you could use [match]:

– Pasted Max Patch, click to expand. –

M

#190004
Oct 21, 2010 at 2:06pm

Thank you very usefull.

#190005
Oct 21, 2010 at 7:10pm

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 :)

#190006

You must be logged in to reply to this topic.