Win32::OLE and IE popups

P

puff

I'm trying to stop IE popups while automating IE via Win32::OLE.
Several examples on the net process the NewWindow2 and/or NewWindow3
event and cancel the popup with code that looks like this:

$event eq 'NewWindow2' and do {
print "NewWindow2 kill popup\n";
$args[1]->Put( 1 ); #<<<<<<<<<<<<<<<<<< doesn't work
print "cancel[" .$args[1]->Value() . "]\n";
last CASE;
};

This does not work and I'm getting PERL crashes.

Does anyone know how to block popups? Can anyone point me to a working
example that blocks popups?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,144
Latest member
KetoBaseReviews
Top