matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: [Question] How to obtain screen resolution?
code: function OnEvent_Initialize(MessengerStart){
/*
Get the x and y widths of all monitors.
*/
var _x = Interop.Call('user32', 'GetSystemMetrics', 0x4e /* SM_CXVIRTUALSCREEN */);
var _y = Interop.Call('user32', 'GetSystemMetrics', 0x4f /* SM_CYVIRTUALSCREEN */);
/*
Print out the screen resolution
*/
Debug.Trace(_x+'x'+_y);
}
|
|