cypher175 Posted April 27, 2009 Share Posted April 27, 2009 is there anyway to use _IECreateEmbedded() Without Using a GUI..?? So the _IE functions happen invisibly in just one AutoIt.exe process..?? Link to comment Share on other sites More sharing options...
Juvigy Posted April 27, 2009 Share Posted April 27, 2009 Why not use one of the other functions like _IECreate ? Link to comment Share on other sites More sharing options...
cypher175 Posted April 27, 2009 Author Share Posted April 27, 2009 because i just want to have only one process running without any IE windows open or any other extra processes running for the sake of simplicity.. Link to comment Share on other sites More sharing options...
Authenticity Posted April 27, 2009 Share Posted April 27, 2009 (edited) Nope, you can't. You have to embedded it before trying to do anything with this object. But, nobody said the GUI has to be visible or appear on the task bar: #include <IE.au3> #include <WindowsConstants.au3> $hGUI = GUICreate('', 100, 100, -65536, -65536, $WS_POPUP, $WS_EX_TOOLWINDOW) $oIE = _IECreateEmbedded() $ObjIE = GUICtrlCreateObj($oIE, 0, 0) _IENavigate($oIE, 'http://www.google.com') ConsoleWrite(_IEDocReadHTML($oIE) & @LF) Edited April 27, 2009 by Authenticity Link to comment Share on other sites More sharing options...
Juvigy Posted April 27, 2009 Share Posted April 27, 2009 because i just want to have only one process running without any IE windows open or any other extra processes running for the sake of simplicity..So? Just use it with parameters so the IE window is hidden. Link to comment Share on other sites More sharing options...
cypher175 Posted April 27, 2009 Author Share Posted April 27, 2009 is there anyway to block popup/popout windows that might occur when navigating usin this code..?? #include <IE.au3> #include <WindowsConstants.au3> $hGUI = GUICreate('', 100, 100, -65536, -65536, $WS_POPUP, $WS_EX_TOOLWINDOW) $oIE = _IECreateEmbedded() $ObjIE = GUICtrlCreateObj($oIE, 0, 0) _IENavigate($oIE, 'http://www.google.com') ConsoleWrite(_IEDocReadHTML($oIE) & @LF) Link to comment Share on other sites More sharing options...
Authenticity Posted April 27, 2009 Share Posted April 27, 2009 Nope. Same goes for _IECreate(). Only if it's a popup of the object you can use _IEPropertySet($oIE, 'silent', True). I think you're looking for HTTP requests, etc... Search the Example Scripts forum for one of the HTTP library. Link to comment Share on other sites More sharing options...
cypher175 Posted April 27, 2009 Author Share Posted April 27, 2009 What do you mean by "Only if it's a popup of the object you can use _IEPropertySet($oIE, 'silent', True)"..?? what will using _IEPropertySet($oIE, 'silent', True) do exactly..?? what can "HTTP requests" do for me..?? can they function in the same way that the _IE functions do..?? Link to comment Share on other sites More sharing options...
Authenticity Posted April 27, 2009 Share Posted April 27, 2009 An example of a popup window of the object is the popup which notifies you that you're now surfing in offline mode. You can use silent mode and the object won't show this popup, but if it's a popup window of the page you're viewing or anything else that is not a popup of the object you'll see it even if you'll use silent mode. If you don't need to see the page then you don't need InternetExplorer.Application or Shell.Explorer.2 object. If you just need to source of the page, or to send information to get the result back you can use _INet* function or one of the HTTP libraries. Link to comment Share on other sites More sharing options...
cypher175 Posted April 30, 2009 Author Share Posted April 30, 2009 So _IEPropertySet($oIE, 'silent', True) will only work to block IE Notification PopUps then.. not the Popups that occur when you browse pages that have scripts or code that generate popups when you view them or what exactly..?? so how exactly does _IEPropertySet($oIE, 'silent', True) work to block popups..?? Link to comment Share on other sites More sharing options...
cypher175 Posted May 1, 2009 Author Share Posted May 1, 2009 so there isn't anyway at all to monitor _IECreateEmbedded() inside a GUI to try and block a PopOut Windows that occurs when you view a page that contains code to generate a PopUp IE window when its viewed..?? I noticed if I set the IE settings to turn off active scripting it seems to block popups but i need scripting enable for IE though.. so what other things could i do to block the popouts of the IE object thats embedded into the GUI..?? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now