Tables: windows table title searching now case insensitive
This commit is contained in:
parent
2e698bb1d4
commit
42109ec4e4
|
@ -234,7 +234,7 @@ def discover_nt_by_name(c, tablename):
|
||||||
#print "Tables.py: tablename =", tablename, "title =", titles[hwnd]
|
#print "Tables.py: tablename =", tablename, "title =", titles[hwnd]
|
||||||
try:
|
try:
|
||||||
# this can blow up in XP on some windows, eg firefox displaying http://docs.python.org/tutorial/classes.html
|
# 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:
|
except:
|
||||||
continue
|
continue
|
||||||
if 'History for table:' in titles[hwnd]: continue # Everleaf Network HH viewer window
|
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
|
return info
|
||||||
|
|
||||||
def win_enum_handler(hwnd, titles):
|
def win_enum_handler(hwnd, titles):
|
||||||
titles[hwnd] = win32gui.GetWindowText(hwnd)
|
titles[hwnd] = win32gui.GetWindowText(hwnd).lower()
|
||||||
|
|
||||||
###################################################################
|
###################################################################
|
||||||
# Utility routines used by all the discoverers.
|
# Utility routines used by all the discoverers.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user