Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How to get screen resolution under Win32?

by EvanK (Chaplain)
on Sep 26, 2001 at 10:11 UTC ( #114748=note: print w/replies, xml ) Need Help??


in reply to How to get screen resolution under Win32?

$DesktopWin = $Main->GetDesktopWindow(); (undef,undef,$DesktopWidth,$DesktopHeight) = Win32::GUI::GetWindowRect +($DesktopWin); print "Screen Resolution is $DesktopWidth x $DesktopHeight";
note: this requires use of the win32::gui module

______________________________________________
RIP
Douglas Noel Adams
1952 - 2001

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://114748]
help
Chatterbox?
marioroy LWP::Simple works best with Perl v5.26 on Windows. Any Perl version is fine on Cygwin and Unix.
[karlgoethebier]: Hi mario
[marioroy]: Hi karlgoethebier.
[karlgoethebier]: "Long time No See" ;-)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2017-09-23 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (272 votes). Check out past polls.

    Notices?