What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Question] How to obtain screen resolution?

[Question] How to obtain screen resolution?
Author: Message:
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
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);
}
03-13-2007 03:23 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Question] How to obtain screen resolution? - by xsylvain2 on 03-13-2007 at 02:56 PM
RE: [Question] How to obtain screen resolution? - by matty on 03-13-2007 at 03:23 PM
RE: [Question] How to obtain screen resolution? - by xsylvain2 on 03-13-2007 at 03:33 PM
RE: [Question] How to obtain screen resolution? - by matty on 03-13-2007 at 07:03 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On