As with most things, context is key. If you're trying to read the screen resolution of the reader's computer from a CGI script, you can't do it directly. Since you specified no JavaScript, all that's left to suggest is VBScript or some sort of custom control. CGIs don't magicly have some sort of access to the users' computer that HTML pages don't. All they can do is read the headers and form data sent to them.
If you're using some sort of GUI toolkit to make a program that runs localy, the answer depends on the toolkit. I don't happen to know the answer for any of them, but a search through the documentation of the module in question will probably reval somthing. If you're writing a program designed for win32, try Win32::API, and a search on MSDN for "screen resolution". The search will reveal a page called "C++ Q&A: Stopping Screen Savers, Detecting Screen Resolution, Adding Status Bar Buttons -- MSDN Magazine, December 2001", which will point you at the documentation for GetSystemMetrics, which should be fairly easy to interface to with Win32::API, assuming you have a copy of windows.h handy. (If you don't, reply to this node, and let me know what constants you want. windows.h will be included with any C compiler for win32. Search for it online first, though, because you might be able to a copy.
In reply to Re: Resolution
by theorbtwo
in thread Detecting web clients monitor resolution without javascript
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |