Sign in to follow this  
Followers 0
kcd-clan

ok need to check title and devide

5 posts in this topic

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()

Share this post


Link to post
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)

Share this post


Link to post
Share on other sites

greens code can do that for you ... just call it every once in a while with

wile/wend or Adlbenable ( to use as a function )

8)


NEWHeader1.png

Share this post


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

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