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

Reading text from the current input text box

Expand Messages
  • shsk7203
    Hi, Here s one way of reading the text from the current text box in the active window: Assuming that your cursor is on the right input box, or you can use
    Message 1 of 1 , Jul 28, 2003
    • 0 Attachment
      Hi,

      Here's one way of reading the text from the current text box in the
      active window:

      Assuming that your cursor is on the right input box, or you can use
      SendKeys("{TAB}") to ensure that you are :

      Use FindWindowLike to get the handle on your window. Assuming that
      variable $win holds that handle:

      $textbox = GetFocus($win);
      $text = WMGetText($texbox);

      Regards,
      -skanitkar
    Your message has been successfully submitted and would be delivered to recipients shortly.