Is it possible to change the screen resolution with an AHK script and if so how? Thanks...
Screen Resolution...
Started by
Royce
, Feb 27 2006 10:46 PM
3 replies to this topic
#1
-
Posted 27 February 2006 - 10:46 PM
Check out MultiRes...try searching the forum. A simple search on "resolution" would give you suffcient results. Here's one....Goodluck!
http://www.autohotke... ... t=multires
http://www.autohotke... ... t=multires
#2
-
Posted 28 February 2006 - 12:25 AM
Here is simpler solution...
You can open up the Windows Display Properties/Settings dialog, move the slider (for the screen resolution) to its leftmost position (Home), then send as many Right arrow keys as necessary for your desired resolution (3 as an example below) and finally simulate a click on the OK button. For Windows XP
By (control) clicking on Advanced, selecting Adapter, clicking on List All Modes a list pops up, where you can choose the refresh rate, too. ControlSend Home/End/Up/Down, as you like.
You can open up the Windows Display Properties/Settings dialog, move the slider (for the screen resolution) to its leftmost position (Home), then send as many Right arrow keys as necessary for your desired resolution (3 as an example below) and finally simulate a click on the OK button. For Windows XP
Run control desk.cpl`,`,3 WinActivate Display Properties WinWaitActive Display Properties ControlSend msctls_trackbar321, {Home}{Right 3}, Display Properties ControlClick Button8, Display Properties ; OKIf you want a more fancy solution, you can read the screen resolution to be set under the slider
ControlGetText Res, Static8, Display Propertiesand compare it to the desired one. If it is not right, send another Right arrow in a loop. If there is no change in the displayed resolution, you cannot set your desired resolution, send an error message and Cancel with control-clicking on Button9.
By (control) clicking on Advanced, selecting Adapter, clicking on List All Modes a list pops up, where you can choose the refresh rate, too. ControlSend Home/End/Up/Down, as you like.
#3
-
Posted 28 February 2006 - 12:38 AM
There is also shimanov's solution...
#4
-
Posted 28 February 2006 - 01:05 PM
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")