Receiving error whrn using .Connect(processID).

9 views
Skip to first unread message

SWEA

unread,
Feb 23, 2010, 6:14:51 PM2/23/10
to SWExplorerAutomation
I need to use an existing instance of IE. First I get the processID
and then to connect with .Connect(processID) and get the following
error message:


" Failed to open shared memory: Verify that [Enable third-party
browser extensions] is checked in Internet Explorer options and
SWExplorerAutomation.dll was registered. For IE8 switch off protected
mode."

Checked the third-party, using Explorer 7 on windows xp.

Here is the code:

private void button1_Click(object sender, EventArgs e)
{
int processId = 0;
foreach (Process proc in Process.GetProcesses())
{
if (proc.MainWindowTitle.StartsWith("Purolator") )
{
processId = proc.Id;
break;
}

}


SWExplorerAutomation.Client.ExplorerManager
explorerManager = new SWExplorerAutomation.Client.ExplorerManager();

SWExplorerAutomation.Client.Scene scene;
SWExplorerAutomation.Client.DialogScene dialogScene;
explorerManager.LoadProject("C:\\Documents and Settings\
\Administrator\\My Documents\\ship.htp");
explorerManager.Connect(processId);

Message has been deleted

Alex

unread,
Feb 24, 2010, 4:00:15 PM2/24/10
to SWExplorerAutomation
SWEA Internet Explorer Runtime (IE Add-on) is only loaded when IE
isrun using SWEA API Connect function. You can disconnect from the
SWEArun IE instance and reconnect to it, but there is no way to
connect toIE instance which is not run by SWEA. We are planning to add
aregistry key which will disable the check to allow loading runtime
inall instance of IE which will enable the connection to them.

sal bloch

unread,
Feb 24, 2010, 6:59:21 PM2/24/10
to swexplorer...@googlegroups.com
Thanks for the quick reply.  Can you tell me when this will happen, since I need to access an already opened IE.

On Wed, Feb 24, 2010 at 6:52 AM, Alex <alex...@hotmail.com> wrote:
SWEA Internet Explorer Runtime (IE Add-on) is only loaded when IE is
run using SWEA API Connect function. You can disconnect from the SWEA
run IE instance and reconnect to it, but there is no way to connect to
IE instance which is not run by SWEA. We are planning to add a
registry key which will disable the check to allow loading runtime in
all instance of IE which will enable the connection to them.

On Feb 23, 6:14 pm, SWEA <sal.bl...@gmail.com> wrote:
--
You received this message because you are subscribed to the Google Groups "SWExplorerAutomation" group.
To post to this group, send email to swexplorer...@googlegroups.com.
To unsubscribe from this group, send email to swexplorerautoma...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/swexplorerautomation?hl=en.


Reply all
Reply to author
Forward
0 new messages