in reply to Re^3: Win32:: How to tell when Default browser url has loaded
in thread Win32:: How to tell when Default browser url has loaded
Secondly I am using Win32::Process to launch the default browser as follows-
my $ShellExec = Win32::API->new('shell32', 'ShellExecute', 'NPPPPI', 'N') or die "cannot import ShellExecute: $!\n";
my $DefaultBrowser = $ShellExec->Call(0, "open", "http://SomeWebSiteURL", "", ".", SW_SHOWNORMAL);
if ($DefaultBrowser < 33) {
print STDERR Win32::FormatMessage($DefaultBrowser), "\n";
exit(1);
}
I got this from another posting ...can't remember where...& I am not sure what the 'NPPPPI', 'N' bit is but it seems to work....that is: load the default browser!
I have the handle $DefaultBrowser to browser object window allowing me to control it!....I should be able to do as you have suggested ..that is: the $agent->ReadyState...
I will have to spend some time experimenting and trying operation with different default browsers which will take some time....I will post back as soon as I can!
If anyone else has any more input in the mean time it would be greatly appreciated to all members of the monastery.
TAHAIC
|
|---|