Tables: windows table title searching now case insensitive

This commit is contained in:
eblade 2009-08-06 00:12:49 -04:00
parent 2e698bb1d4
commit 42109ec4e4

View File

@ -234,7 +234,7 @@ def discover_nt_by_name(c, tablename):
#print "Tables.py: tablename =", tablename, "title =", titles[hwnd]
try:
# this can blow up in XP on some windows, eg firefox displaying http://docs.python.org/tutorial/classes.html
if not tablename in titles[hwnd]: continue
if not tablename.lower() in titles[hwnd]: continue
except:
continue
if 'History for table:' in titles[hwnd]: continue # Everleaf Network HH viewer window
@ -302,7 +302,7 @@ def decode_windows(c, title, hwnd):
return info
def win_enum_handler(hwnd, titles):
titles[hwnd] = win32gui.GetWindowText(hwnd)
titles[hwnd] = win32gui.GetWindowText(hwnd).lower()
###################################################################
# Utility routines used by all the discoverers.