Sign in to follow this  
Followers 0
Ghost21

Display Settings

6 posts in this topic

All I would like to do is when it reads whatever resolution I want say 1024 x 768 Posted Image

I can say go right 10 steps and if it does see it stop if it doesn't do back 14 steps and when slider bar reads 1024 x 768 send !A for apply

Or even if someone can just tell me the code to READ that slider bar text that changes as the bar moves eg. 800 by 600 , 1024 by 768 , etc. I can do the rest but that part I can't get it to read right..

Help Please.... :whistle:

Share this post


Link to post
Share on other sites



Have a look at This topic



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Have a look at This topic

Yeah that looks great and all but I would really like to be able to read that text under the slider bar...

Share this post


Link to post
Share on other sites

This works for me

$var = ControlGetText("Display Properties", "", "Static8")
MsgBox(0,"Resolution is",$var)


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

@BigDod, it is static7 here on Vista. :whistle:

This works on Vista using WinGetText().

WinActivate('Display Settings', 'Ad&vanced Settings')
$text = WinGetText('Display Settings', 'Ad&vanced Settings')
If $text Then
    $line = StringSplit($text, @LF)
    For $i = 1 To UBound($line) -1
        ConsoleWrite($line[$i] & @CRLF)
        If StringInStr($line[$i], 'pixels') Then
            MsgBox(0, '', $line[$i])
            ExitLoop
        EndIf
    Next
EndIf

:P

Share this post


Link to post
Share on other sites

@BigDod, it is static7 here on Vista. :whistle:

I am using Win XP Pro and checked it with the Window Info Tool.


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

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  
Followers 0