Small Optim,
Replace all those SendKeys with one:
Win32::GuiTest::SendKeys('%y');
I actually did pretty much the same save I have a separate script that that lives for 2 minutes who's sole purpose in life is to kills off that popup window. In the calling application I call Win32::Process::Create as a detached_process just before causing the window to popup.
p1:..code..
p1:Win32::Process::Create(,'allow_outlook_send.pl',,,DETACHED_PROCESS,
+)
p2:started, on loop look for window
p1:access outlook
p1:hang on output
p2:found window, click yes (till yes is available)
p2:exit
p1:got output
p1:..code..
TM
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|