11-14-2013, 07:23 AM
more elaborate.
copy all page (its containt) containing numbers to clipboard, then click on the desired number in the list and paste in softphone
Macro Macro2
those two examples work only if there is only *one* phone number in a line of original text.
Much complicated if there is more than one phone number per line....
HTH
copy all page (its containt) containing numbers to clipboard, then click on the desired number in the list and paste in softphone
Macro Macro2
_s.getclip
ARRAY(str) telnumber
str s t ici
foreach s _s
,findrx(s "(\d{3}-\d{3}-\d{4})" 0 4 t)
,if(empty(t)) continue
,t.trim
,telnumber[]=t
_s=telnumber
;
_i=list(_s "" "" 0 0 0 1 1)
s=telnumber[_i-1]
s.setclipthose two examples work only if there is only *one* phone number in a line of original text.
Much complicated if there is more than one phone number per line....
HTH
