Here's a simple example of how it is called and used:
#include <ChangeResolution.au3> $iWidth = 1024 $iHeight = 768 $iBitsPP = 32 $iRefreshRate = 60 $vRes = _ChangeScreenRes($iWidth, $iHeight, $iBitsPP, $iRefreshRate) If @error Then MsgBox(262160, "ERROR", "Unable to change screen - check parameters") EndIf
Format for the UDF is as follows:
#include <ChangeResolution.au3> _ChangeScreenRes( [Width [, Height [, BitsPerPixel [, RefreshRate]]]] )
Parameters
Width - [optional] Width of the desktop screen in pixels. (horizontal resolution). Default (-1) is @DeskTopWidth
Height - [optional] Height of the desktop screen in pixels. (vertical resolution). Default (-1) is @DesktopHeight
BitsPerPixel - [optional] Depth of the desktop screen in bits per pixel. Default (-1) is @DesktopDepth
RefreshRate - [optional] Refresh rate of the desktop screen in hertz. Default (-1) is @DesktopRefresh
Return Value
Success: Screen is adjusted, @ERROR = 0
Failure: Sets @ERROR = 1
Remarks
Current screen parameters may be left unchanged by using '-1' as the parameter.
This post has been edited by PartyPooper: 12 January 2006 - 07:24 AM

Sign In
Register
Help



MultiQuote