Loading ...
Sorry, an error occurred while loading the content.

Re: PushButton("OK") fails :-(

Expand Messages
  • ctrondlpaulsden
    ... SetForegroundWindow($windows[0]). ... button is not working. :-( Why?!? PushButton uses a case insensitive match with a regular expression. With that in
    Message 1 of 2 , Mar 14, 2002
    • 0 Attachment
      --- In perlguitest@y..., "huazhi_ca" <huazhi_ca@y...> wrote:
      > I used spy--.pl to sniff out this window. I got the following
      snippet amongst everything else:
      >
      > ++0x00420082, 'Check Name', #32770
      > +++0x0084006C, 'Microsoft Outlook does not recognize:', Static
      > +++0x004800BE, '', RichEdit20A
      > +++0x002100E8, '&Change to', Button
      > +++0x00A500DA, '', ListBox
      > +++0x00120070, 'P&roperties...', Button
      > +++0x002800B6, 'OK', Button
      > +++0x00550102, 'Cancel', Button
      > +++0x00C800FE, '&Help', Button
      > +0x002100AE, 'Microsoft Outlook', #32770
      >
      > I use FindWindowLike(0, "Check Name", "#32770") and then
      SetForegroundWindow($windows[0]).
      >
      > Afterwards, I call PushButton("OK"), but it doesn't work. The ok
      button is not working. :-( Why?!?

      PushButton uses a case insensitive match with a regular expression.
      With that in mind, it could be picking up on the OK in one of the
      windows that have "OutloOK" in the name. Try using PushButton("^OK");
    Your message has been successfully submitted and would be delivered to recipients shortly.