Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Reading the active internet.explorer

by beachbum (Beadle)
on May 03, 2003 at 06:33 UTC ( [id://255261]=note: print w/replies, xml ) Need Help??


in reply to Reading the active internet.explorer

I think what you're looking for is "GetActiveObject".

I played around with this briefly several months ago, but a never had a use for it, so I never pursued it. Most of my research success came from http://msdn.microsoft.com and the OLE-Browser from ActiveState.

here's a bit of code that reads the url of all open browsers before closing them:

use Win32::OLE qw(in with); use Win32::OLE::Const 'Microsoft Internet Controls'; my $app; my $count = 0; while(defined ($app = Win32::OLE->GetActiveObject('InternetExplorer.Ap +plication'))){ $count++; $app->{'Visible'} = 1; my $result = $app->{'LocationURL'}; print $result . "\n"; $app->Quit; undef $app; sleep 1; } print "Total windows: $count\n"; # $app->{'TheaterMode'} = 1; # $app->{'FullScreen'} = 1; # $app->Quit;

2003-05-03 edit ybiC: <code> tags

Replies are listed 'Best First'.
Re: Re: Reading the active internet.explorer
by Anonymous Monk on Aug 31, 2003 at 19:54 UTC
    This unfortunatly still not what I want. It should just print out the whole content which a user has activ in a windows on his screen, not activated by a perl script. So a user is just browsing his interne.explorer and than on a moment when he start a perl scipt it will read and afcourse extract the content which the person has active on his window. I canīt find the trigger...any help appreciated. Perry

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://255261]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-24 06:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found