Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2009
    Posts
    48

    Grin HELP - Getting Text From Table

    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
    Last edited by drummernath; 08-13-2009 at 09:10 AM.

  2. #2
    Join Date
    Apr 2007
    Location
    Raalte, OV, Netherlands
    Posts
    3,287
    Try the next function, place it in your Global area:

    Code:
    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:

    Code:
    Dialog.Message("IsInternetExplorerActive", tostring(IsInternetExplorerActive()));
    Bas Groothedde
    Imagine Programming :: Blog :: Familiar people here

    My AMS Plugins:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts