Jump to content
Sign in to follow this  
d4rkdz

internet explorer inside script

Recommended Posts

d4rkdz

hello there there , i am newto autoit and i wondering ifthere is a way to hide internet explorer process under the my script or to include them in the script process itself , i know that you can do that when writing a gui program and internet explorer is embedded into gui , but is that possible in program that dosn't have graphical user interface ??

Share this post


Link to post
Share on other sites
Venix

Do you mean something like this?

#include <IE.au3>
;Opens a visible or invisible internet explorer window.
_IECreate("Google.com", 0, 0) ; Change the last 0 to 1 to make the window visible.

Share this post


Link to post
Share on other sites
d4rkdz

Do you mean something like this?

#include <IE.au3>
;Opens a visible or invisible internet explorer window.
_IECreate("Google.com", 0, 0) ; Change the last 0 to 1 to make the window visible.

that would ceat an invisible window but the process will still be separated from the script , what i need is to make in the same process tree as the script or included in the script process

Share this post


Link to post
Share on other sites
Venix

I am not sure why you would want the process linked to the script other than to close it when the program closes but I believe you can code something to do that anyway, I wouldn't be sure how to link the process tree's sorry.

Edit: Example, this would close I.E when the GUI closes, not entirely sure without a GUI would depend under what circumstances the program closes.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
GUISetState(@SW_SHOW)
; Opens a visible or invisible internet explorer window.
_IECreate("Google.com", 0, 1) ; Change the last 0 to 1 to make the window visible.
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
ProcessClose("iexplore.exe") ; On Exit, Close Internet Explorer.
   Exit
EndSwitch
WEnd
Edited by Venix

Share this post


Link to post
Share on other sites
somdcomputerguy
_IECreateEmbedded - Create a Webbrowser object suitable for embedding in an AutoIt GUI with GuiCtrlCreateObj().

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×