Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finding text...
#4
1. Store all text to a variable. The text field is a control (window that is part of other window). To get its text, use Window dialog, "Get text" action. Drag the second "Drag" picture to capture the control. Delete window text to make the macro work with whatever message. Specify a variable.

2. Find needed string using findrx (if you know regular expressions) or other string functions.

3. Use setclip to store the found string to the clipboard.

Code:
Copy      Help
str s.getwintext(id(136))
str email
if(findrx(s "^From: .*<(.+?)>$" 0 8|1 email 1)>=0)
,email.setclip


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)