Hi, I have zero experience writing perl to deal with gui and or win32 stuff. I'm looking for a pointer; a clue as to which direction I should be looking in. I run this, pretty much verbatim from manpage,
use Win32::IE::Mechanize; use strict; use warnings; my $ie = Win32::IE::Mechanize->new( visible => 1 ); $ie->get( "http://somesite.nu/work/fun-form.html" ); $ie->form_name( "form2" ); $ie->set_fields( message => 'yourname', email => 'dummy\@dummy.net' );
The snippet runs, then kind of falls off the edge and dies. What I will be wanting to do is to be populating a whole series of forms with the user verifying each dataset before the sequence moves on to submit_form, and the next form. I'm imagining that if I can give the explorer object 'focus' then perhaps the script will be in the holding pattern that I am looking for. I thought about telling it to wait for keyboard input, but I could see that interfering with form field tweaks. I've been scrolling through the active state perl docs, and the win32::ole browser, but I'm kind of at sea in this area. All I want to know is where I should be directing my attention, thanks

In reply to Win32::OLE ; set focus? by food

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.