kcd-clan Posted March 14, 2006 Share Posted March 14, 2006 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 More sharing options...
greenmachine Posted March 14, 2006 Share Posted March 14, 2006 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 More sharing options...
kcd-clan Posted March 14, 2006 Author Share Posted March 14, 2006 when a new one comes up i want to detect the window and only if its - 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 More sharing options...
Valuater Posted March 14, 2006 Share Posted March 14, 2006 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) Link to comment Share on other sites More sharing options...
greenmachine Posted March 15, 2006 Share Posted March 15, 2006 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now