02-18-2007, 06:29 PM
Hi there,
When i'm using this code:
variables
str s1
ARRAY(str) a
activate notepad, select all, get all text into s1
act "Kladblok"
key Ca
s1.getsel
use regular expression to find and extract text between . and !
if(findrx(s1 "\$(.+?)!" 0 4 a)<0) ret ;;exit if not found
a now contains all instances of text between . and !
activate QM and display a
act _hwndqm
int i
for i 0 a.len
out a[1 i]
mes a[1 i]
and the text is devided in multiple lines nothing is selected and i'm getting nothing back. What is wrong with it or am i missing something. It is ment to select a piece of text of several lines and copy this.
TIA
When i'm using this code:
variables
str s1
ARRAY(str) a
activate notepad, select all, get all text into s1
act "Kladblok"
key Ca
s1.getsel
use regular expression to find and extract text between . and !
if(findrx(s1 "\$(.+?)!" 0 4 a)<0) ret ;;exit if not found
a now contains all instances of text between . and !
activate QM and display a
act _hwndqm
int i
for i 0 a.len
out a[1 i]
mes a[1 i]
and the text is devided in multiple lines nothing is selected and i'm getting nothing back. What is wrong with it or am i missing something. It is ment to select a piece of text of several lines and copy this.
TIA