Results 1 to 3 of 3

Thread: Length of Selected Text in External Window

  1. #1
    Guest
    I need to be able to get the length of the highlighted (selected) text in an external Rich Control. Any ideas on how to do this?

    Thanks,
    Jordan

  2. #2
    Hyperactive Member scuzymoto's Avatar
    Join Date
    Aug 1999
    Location
    Washington State
    Posts
    316
    I don't know if this will work, Im just trying to mine ideas for you. Could you use send keys to copy whatever is selected in the other window into the clipboard?
    Because then you could just do a simple Len function on what is in the clipbaord. Like this...

    len(clipboard.gettext)
    SCUZ

  3. #3
    Hyperactive Member scuzymoto's Avatar
    Join Date
    Aug 1999
    Location
    Washington State
    Posts
    316
    You would probably have to do something with API to have the proper window selected when the sendkeys fires in order to get the text string into the clipboard. Good luck.
    SCUZ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width