Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change windows resolution using perl?

Status
Not open for further replies.

Sina

Technical User
Jan 2, 2001
309
CA
Hello,

Is there a way to change windows resolution using perl?
I like to change the resolution from 800x600 to 1024x768.

Thank you all
 
you're asking about serious OS meddling, therefore you'll have to look into some sort of API communication. i've personally never looked at any of this, but there may already be modules for doing this on CPAN. depending on your system, and what coding has already been done to facilitate this, you may only need to call a simple function. if not, you may need to write an extension for the API commands. it's probly already been done, so don't be too afraid. check around on CPAN for your OS suffixed with '::API' maybe? hope this helps some. "If you think you're too small to make a difference, try spending a night in a closed tent with a mosquito."
 
There's, what looks like quite good, documentation of Win32::API in the PC distribution of Perl. On my PC it is in the file file://C:\Perl\html\site\lib\Win32\API.html

Doesn't look like easy stuff, but it does look fun. Let us know how you get on -- and I'm going to install it now :) Mike
michael.j.lacey@ntlworld.com
Email welcome if you're in a hurry or something -- but post in tek-tips as well please, and I will post my reply here as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top