Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read Text Do Action
#1
Is there a way to read text and do action?
example: Read Text from Notepad and if text= "test" then out s
Smile 8)
#2
rep
,str s
,s.getwintext(id(15 "Notepad"))
,if(s="test") out s
,0.1
#3
Gintaras Wrote:rep
,str s
,s.getwintext(id(15 "Notepad"))
,if(s="test") out s
,0.1
:lol: thanks
Smile 8)
#4
Gintaras Wrote:rep
,str s
,s.getwintext(id(15 "Notepad"))
,if(s="test") out s
,0.1

ok that works, but what if there is more text then just "test"
Example: get Test from paragraph.
this is a test <<<< but test will not always be the fourth word. Is that possible?
Smile 8)
#5
Instead of if(s="..."), use if(find(s "...")>=0), or findrx etc.


Forum Jump:


Users browsing this thread: 1 Guest(s)