Greetings, I'm trying to create a program that will (more or less) send emails. I have everything going pretty good, minus the annoying security error pop-ups. Now I have been able (with the help of google and here) to do work-arounds for this (using Win32::GuiTest).

I'm running the 'error monitor' subroutines with Thread, so that they are running in the background. When the first error pop-up comes, I'm able to select max time, and proceed. When the second error pops up, wait the 5 seconds, and proceed.

So what's the problem? It could be 1 min, or it could be 1 hour before a second email is sent, causing havoc with the first error pop-up. How do I extract the actual text within the error pop-up itself?

I've googled and searched this site for hours on end, and no luck. Best I can come up with for extracting text is:
Win32::GuiTest::GetWindowText($window)
and
Win32::GuiTest::WMGetText($window)
Both however, return the same for me, which is "Microsoft Office Outlook". Any suggestions on how to extract the actual text in the error box, or at least how to tell the difference (in code) between the two? Any help is appreciated.

In reply to MS Outlook Security Errors by FireBird34

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.