PDA

View Full Version : HELP - Getting Text From Table



drummernath
08-13-2009, 10:06 AM
ok, i have enumulated the window titles and what i need to be able to do is to get the internet explorer window title;


View Available Networks (Tooltip)
AutoPlay
Debug
Pc Tuneup Professional - AutoPlay Media Studio
Indigo Rose Software Forums - Post New Thread - Windows Internet Explorer
Program Manager
Google - Windows Internet Explorer

above is the enumulated window titles that are top level as you can see internet explorer is in there but how to i get the value for the "Google - Windows Internet Explorer" without needing to know the current URL (because its not always going to be "Google" if you see what i mean) of the internet explorer so i can return it to the application?

any ideas on how to do this and if its possible without having to save it into a text file before getting the URL

Imagine Programming
08-13-2009, 01:05 PM
Try the next function, place it in your Global area:



function IsInternetExplorerActive()
local tWindowTitles = Window.EnumerateTitles(true);
if(tWindowTitles)then
for i, v in tWindowTitles do
if(String.Find(v, "Windows Internet Explorer")~=-1)then
return true;
end
end
return false
end
end


and for instance you could call this from the On Show event in a page like:



Dialog.Message("IsInternetExplorerActive", tostring(IsInternetExplorerActive()));