I am using the LuaCOM plugin to open IE without address bar, tool bar etc. Is there a way to change the title so it doesn't also display the url adress?
Eric
Eric
-- Get the titles and window handles of all open windows. windows = Window.EnumerateTitles(); -- A variable containing text in the title you want to search for. URLToFind = "http://www.whatever.com"; -- A variable that holds the new title sNewTitle = "New title for Window"; -- Loop through the table of windows. for handle, title in windows do -- Check if the window title has the target text. result = String.Find(title, URLToFind, 1, false); -- if the string was found in the title if (result ~= -1) then Window.SetText(handle, sNewTitle"); end end
-- Get the titles and window handles of all open windows. windows = Window.EnumerateTitles(); -- A variable containing text in the title you want to search for. URLToFind = "http://www.whatever.com"; -- A variable that holds the new title sNewTitle = "New title for Window"; -- Loop through the table of windows. for handle, title in windows do -- Check if the window title has the target text. result = String.Find(title, URLToFind, 1, false); -- if the string was found in the title if (result ~= -1) then Window.SetText(handle, sNewTitle"); end end
--Create an Instance of IE oIE=luacom.CreateObject("InternetExplorer.Application.1") --navaigate oIE:Navigate2("http://www.indigorose.com") --set the menu, adddres, and toolbar to off oIE.Menubar = false; oIE.AddressBar = false; oIE.ToolBar = false; --wait for navigation to complete Application.Sleep(500) --Set the title Window.SetText(oIE.HWND, "Indigo Rose Rules!") --show browser oIE.Visible = true
--Create an Instance of IE oIE=luacom.CreateObject("InternetExplorer.Application.1") --navaigate oIE:Navigate2("http://www.indigorose.com") --set the menu, adddres, and toolbar to off oIE.Menubar = false; oIE.AddressBar = false; oIE.ToolBar = false; --wait for navigation to complete Application.Sleep(500) --Set the title Window.SetText(oIE.HWND, "Indigo Rose Rules!") --show browser oIE.Visible = true
Comment