Jump to content

ok need to check title and devide


Recommended Posts

i need to get titpe of untitled - notepad

Ok say there is more then one open and diffrend names such as

untitled - notepad

untitled2 - notepad

but i have other windows open

Dont wanan have to bother with like winamp or other thing so i want to read only from ones with - notepad

what i need is to know how to read them ones with only - notepad

Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone()
Link to comment
Share on other sites

You mean like..

Opt ("WinTitleMatchMode", 2)
$winlist = WinList (" - Notepad")
$msg = "Found " & $winlist[0][0] & @CRLF
For $i = 1 to UBound ($winlist, 1) - 1
    For $j = 0 To UBound ($winlist, 2) - 1
        If $j = 0 Then 
            $msg &= $winlist[$i][$j]
        Else
            $msg &= " : " & $winlist[$i][$j]
        EndIf
    Next
    $msg &= @CRLF
Next
MsgBox (0, "notepads", $msg)
Link to comment
Share on other sites

All you have to do to check if there are any changes in the quantity of windows (one opened or one closed) is to call the winlist as I have it and see if the $winlist[0][0] is greater than or less than the old $winlist[0][0] value. In other words, save it to a var to check. If it's different, msgbox it.

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...