Jump to content

Display Settings


Recommended Posts

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:

Link to comment
Share on other sites

This works for me

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


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

Link to comment
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

Link to comment
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.


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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...