Hi,
After playing around, I decided to send my DOS output to a file. Then I open the file in Notepad. All good.
Now, I have seen a lot of post that tells how to read lines or files or replace or concatenate but not much on how to find whar you are looking for.
The closest thing I found is the function 'FindWindowwithtext'. What I would like to have instead is more the opposite like 'FindTextWithinWindow'.
The point is that I don't want to search for a window. I already have my text file that I know its filename, I just want to search for some text within that file.
Any hint?
Thanks
Find text within a file
Moderators: JRL, Dorian (MJT support)
Re: Find text within a file
It is very interested. Please tell me more details about searching text. Let say if I want to search for "tool motions" in entire file what the code will be? I am new with macro scheduler.
ReadFile>....
Position>tool motion,'STRING",1,11,var
If>var>0
MessageModal>Found
Endif.
I want to know what will I assign the string in position command.
Thanks
ReadFile>....
Position>tool motion,'STRING",1,11,var
If>var>0
MessageModal>Found
Endif.
I want to know what will I assign the string in position command.
Thanks