B3TA_SCR1PT3R Posted August 4, 2005 Share Posted August 4, 2005 If WinExists("http://") Then $a = WinGetTitle("http://") WinClose("http://") say i had a unblock.txt with a list of window titles to not block how would i word a If statement to read everyline and if it matches the title of windows with title in .txt to not close the window? [right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right] Link to comment Share on other sites More sharing options...
blindwig Posted August 4, 2005 Share Posted August 4, 2005 Dim $aWinList _FileReadToArray($sNoBlockFile, $aWinList) _ArraySort($aWinList) If _ArrayBinarySearch($aWinList, $sWindowTitle) Then MsgBox(0,'Window Listed', $sWindowTitle & ' is on the list') Else MsgBox(0,'Window Not Listed', $sWindowTitle & ' is not on the list') EndIf My UDF Threads:Pseudo-Hash: Binary Trees, Flat TablesFiles: Filter by Attribute, Tree List, Recursive Find, Recursive Folders Size, exported to XMLArrays: Nested, Pull Common Elements, Display 2dSystem: Expand Environment Strings, List Drives, List USB DrivesMisc: Multi-Layer Progress Bars, Binary FlagsStrings: Find Char(s) in String, Find String in SetOther UDF Threads I Participated:Base64 Conversions Link to comment Share on other sites More sharing options...
AutoChris Posted August 4, 2005 Share Posted August 4, 2005 (edited) blindwig beat me to it. Edited August 4, 2005 by SerialKiller 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