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

OK, sorry if this is a stupid question, but what is "args" in the line

$ie->click_button( %args )

I found this within the code on the website you mentioned. I have looked it up within the search function, but so far no luck as to a description.

Thanks
Portree

Replies are listed 'Best First'.
Re^5: IE & File Open
by ikegami (Patriarch) on Jul 25, 2005 at 20:28 UTC
    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.
      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?