Jump to content
Sign in to follow this  
slickvim

Changing the display settings

Recommended Posts

slickvim

Hi,

Sorry, but i am new at this. I would like to modify the display settings automatically using AutoIt.

Is there another way then to go to the control panel or by doing:

Run("control.exe desk.cpl,@0,3")

Is it possible to modify it directly by the registries? Can this work?:

Dim $valueX, $valueY

$valueX = 800

$valueY = 600

RegWrite("HKEY_CURRENT_CONFIG\System\CurrentControlSet\Control\VIDEO\{...}\0000","DefaultSettings.XResolution","REG_DWORD",$valueX)

RegWrite("HKEY_CURRENT_CONFIG\System\CurrentControlSet\Control\VIDEO\{...}\0000","DefaultSettings.YResolution","REG_DWORD",$valueY)

Thank you

Share this post


Link to post
Share on other sites
colafrysen

[font="Impact"]Use the helpfile, It´s one of the best exlusive features of Autoit.[/font]http://support.microsoft.com/kb/q555375ALIBI Run - a replacement for the windows run promptPC Controller - an application for controlling other PCs[size="1"]Science flies us to the moon. Religion flies us into buildings.[/size][size="1"]http://bit.ly/cAMPZV[/size]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.