Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ole object in a new process. is it posible?

Status
Not open for further replies.

Krivik

Programmer
Oct 5, 2003
8
RU
hello
i have windows xp + ie6
is it posible to start internet explorer by ole
[for expample (in wscript): var ie =
WScript.CreateObject("InternetExplorer.Application");]
and ie will be in a new process?
if you run ie from shortcut on desktop, then it will be a new process
(by taskmanager), and it will have empty list of session cookies.
but if you press control-n in ie, then in a new window all session
cookies will be the same like in old window.

if i make CreateObject it's like i press control-n (all session
cookies comes from first opened ie)
so is it posible to run "InternetExplorer.Application" in a new
process?

Q195192 not acceptable, sorry 8(
 
if your OLE object is an .exe, it is always created in a new, separated process. Else if the OLE object is situated on an other computer, is also created in a separated process. Otherwise, if it is a .DLL or .OCX, it is created always inside the same process as application what creates it.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
ole is iexplorer.exe and it DO NOT creates new process. i do know how it is posible.
 
oww i mean
i do NOT know how it is posible
 
try
var = new ActiveXObject("InternetExplorer.Application");

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
the same.
[
for (n=0;n<10;n++){
var ie = new ActiveXObject(&quot;InternetExplorer.Application&quot;);
ie.Visible = true;
}
]
result: only 1 process in task manager (this ie was opened before this script)
 
The problems is when you assign a new value to an initialized object, the old one is released.
Try this:
var ie1 = new ActiveXObject(&quot;InternetExplorer.Application&quot;);
ie1.Visible = true;
var ie2 = new ActiveXObject(&quot;InternetExplorer.Application&quot;);
ie2.Visible = true;

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
the same 8(
only 1 ie process in taskmanager
 
what OS are you using?

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
could you post there a piece of your code?

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
in test.js:
---
var ie1 = new ActiveXObject(&quot;InternetExplorer.Application&quot;);
ie1.Visible = true;
var ie2 = new ActiveXObject(&quot;InternetExplorer.Application&quot;);
ie2.Visible = true;
---
then open 1 ie window and run script
 
I use win2k, but I don't believe what there is so big difference

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
try to run this script may be you have the same
 
yes, I have the same, try so see what happens in win2k

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top