Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9254921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:35:40+00:00 2026-06-18T11:35:40+00:00

In the initialization of my script I would have to read the resolution of

  • 0

In the initialization of my script I would have to read the resolution of the screen so I know how to resize the browser’s window size.

Any ideas?

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T11:35:41+00:00Added an answer on June 18, 2026 at 11:35 am

    Here’s some code that can get the resolution for either the primary monitor or all multiple monitors.
    Additionally, the last function returns a boolean for whether you have multiple monitors or not.

    '*******************************************************************
    'TotalScreenWidth & TotalScreenHeight
    'by Michael Innes
    'October 2012
    
    'Intended for getting the total resolution when you have multiple monitors
    'Returns the width and the height (respectively) across all the screens.
    Function TotalScreenWidth()
        TotalScreenWidth = Window("regexpwndtitle:=Program Manager").GetROProperty("width")
    End Function
    
    Function TotalScreenHeight()
        TotalScreenHeight = Window("regexpwndtitle:=Program Manager").GetROProperty("height")
    End Function
    
    
    '*******************************************************************
    'ScreenWidth & ScreenHeight
    'by Michael Innes
    'October 2012
    
    'Retrieves the width and height (respectively) of the primary screen (the screen that the taskbar is on)
    'This only works if the taskbar is at the bottom of the screen
    Function ScreenWidth()
        ScreenWidth = Window("object class:=Shell_TrayWnd").GetROProperty("width")
    End Function
    
    Function ScreenHeight()
        ScreenHeight = Window("object class:=Shell_TrayWnd").GetROProperty("height") + Window("object class:=Shell_TrayWnd").GetROProperty("y")
    End Function
    
    
    '*******************************************************************
    'MultipleMonitors
    'by Michael Innes
    'October 2012
    
    'Returns a boolean that determines if the computer has multiple monitors attached.
    
    'This only works if the taskbar is at the bottom of the left-most screen.
    'If the taskbar is on the right-most monitor, this function will incorrectly report the multiple monitors as being False.
    Function MultipleMonitors()
        MultipleMonitors = Eval((screenWidth <> TotalScreenWidth) OR (screenHeight <> TotalScreenHeight))
    End Function
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a static initialization block where I read data from DB into certain
I would like to execute a script work.py in Python, after executing some initialization
C++ Notes: Array Initialization has a nice list over initialization of arrays. I have
Is this list-initialization of an array of unknown size valid in C++0x? int main()
I´m getting a lazy initialization exception. A have a controller method with the annotation
I wanted to configure a script that would basically take the opening Outlook 2010
I am using http://jamuhl.github.com/i18next to localize a static website. My initialization script is: jQuery(function($)
Is there a way that I can script the initialization file for GDB so
I have a small Ruby script where an array is initialized to hold a
I have a gdb script I am working on to trace all objective-C method

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.