Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SendMessage EM_ / RichText
#1
ok first im getting the text out of a (rich text box something like notepad) and putting it in the Out in qm. once iv done that i get how many lines are in the box with *EM_GETLINECOUNT* then i keep looking back to see if that # has change (been added to).

what i want to do is add the new lines to the out, get last line will not work (sometimes more than one line is added at a time)

can this be done ? ..... also the time im waiting for each read is 1 second

thanks

JOHN
#2
Store previous text to a variable, then get the difference.

str s sp diff
rep
,s.getwintext(...)
,if(s.len>sp.len) diff.get(s sp.len)
,else diff=""
,sp=s
,wait 1
#3
ok here is what iv done with the code that you gave me

Code:
Copy      Help
ClearOutput
str s sp diff
sp.getwintext(id(679 "RUN TIMER"))
out sp
rep
,s.getwintext(id(679 "RUN TIMER"))
,if(s.len>sp.len) diff.get(s sp.len)
,,out diff
,else diff=""
,sp=s
,1

it works but the diff string has a blank line in it so when it outs whats in my box im reading. there is spaces in it, is there anyway to take out the blank line ? ......the blank line always seems to be the top line in the string
#4
diff.ltrim


Forum Jump:


Users browsing this thread: 1 Guest(s)