Log in

View Full Version : How to get port/landscape/VGA/QVGA info with nscriptm or from registry?


Tye
07-28-2005, 05:32 PM
I'm dabbling in some scripts using MortRunner and nscriptm. Can anyone tell me a reliable way to get the screen orientation and size using nscriptm? (it's easy in MortRunner, but MortRunner may not be powerful enough for my ideas.)

Thank You!

Peter Foot
08-08-2005, 01:20 PM
You can determine the orientation through the registry:-
HKEY_LOCAL_MACHINE\System\GDI\Rotation
value named Angle

To query the screen size (GetSystemMetrics) or to modify the rotation you'll need to make some API calls, I'm guessing you can't do this through nscript.

Peter

Tye
08-19-2005, 06:31 AM
Thank you, Peter. That was exactly what I needed.