09-07-2015, 11:08 AM
Thank you but your code will not fix my problem.
if there are 3 windows with the getwintext
"Notepad 1"
"Notepad 1"
"Notepad 2"
Then I would only want to delete only one window with "Notepad 1" in the wintext.
Also I cannot hard code the wintext to match in advance as I do not know all the windows and wintexts in advance so the code must read them all first and perform exact matches on all of the wintext.
if there are 3 windows with the getwintext
"Notepad 1"
"Notepad 1"
"Notepad 2"
Then I would only want to delete only one window with "Notepad 1" in the wintext.
Also I cannot hard code the wintext to match in advance as I do not know all the windows and wintexts in advance so the code must read them all first and perform exact matches on all of the wintext.