For Programmers: Free Programming Magazines  


Home > Archive > PERL Miscellaneous > November 2005 > Win32::OLE and IE popups









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Win32::OLE and IE popups
puff

2005-11-28, 6:59 pm

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

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com