in reply to Re^4: IE & File Open
in thread IE & File Open

Its arguments are a list of key/value pairs. Only one of name, number, + or value must be specified. * name => name Clicks the button named name. * number => n Clicks the nth button in the form. * value => value Clicks the button with the value value.

Replies are listed 'Best First'.
Re^6: IE & File Open
by Portree (Novice) on Jul 26, 2005 at 16:10 UTC
    Hi Again ikegami,

    I saw this script, but it doesn't tell me how to incorporate it into my code. Below is the code that I have if that helps you:

    use strict; use Win32::OLE; my ($brio, $Process); #$brio = '//163.10.50.33/planning/logistics/programs/B_Chicago_wip_que +ry.bqy'; $brio = 'D:\\Chicago wip query.bqy'; my $ie = Win32::OLE->new("InternetExplorer.Application") or die "Can't + start IE\n"; $ie->{visible} = 1; #$ie->navigate("http://www.perlmonks.org"); $ie->{visible} = 1; sleep 3; $ie->navigate($brio); sleep 5; $ie->click_button(value => 'Process');

    I am sorry if this is too newbie of a question, I am just trying to figure out how to fit it in. Also, I know it is going to give me a pop-up window that is going to ask me for a password, so I may need more help there as well. Thank you for your help.

    Regards,
    Portree

      That looks like it should work. What's the problem?
        I get an error:

        retrying default method at C:/Perl/site/lib/Win32/OLE/Lite.pm line 156.

        and then the code stops.