Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    Jan 2011
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Screen Resolution

    Hi,

    I want perl module/method which deals with screen resolution. How can I read current screen resolution + how can I change it to my desired values?

  • #2
    New Coder
    Join Date
    Jan 2011
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Can someone post any comment on how to do this?

  • #3
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,872
    Thanks
    2
    Thanked 164 Times in 159 Posts
    What OS?

    GUI script, CGI script or run in a terminal window?

    A quick google search came up with this: http://www.roth.net/perl/scripts/scripts.asp?ChRes.pl

  • #4
    New Coder
    Join Date
    Jan 2011
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts
    OS = Windows

    Program is required for GUI.

    Also the link you sent has huge code just to see current resolution...

  • #5
    New Coder
    Join Date
    Jan 2011
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I am running this perl script through DOS.

  • #6
    Super Moderator
    Join Date
    May 2005
    Location
    Southern tip of Silicon Valley
    Posts
    2,872
    Thanks
    2
    Thanked 164 Times in 159 Posts
    Program is required for GUI.
    I am running this perl script through DOS.
    Those 2 statements are contradictory.

    I have not tested the script I linked to, but it should be able to alter the screen resolution.

    A script to report the current resolution could be done in just a few lines of Tk code. If you want to alter the resolution, then you'll need to access several underlying system functions, which is why that linked script uses the Win32::API module.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •