|
Post by antoine on Oct 2, 2020 14:16:06 GMT
Hello,
I want to read a text file with 3 integers per line. I can use MMM to extract a full line from the file into %STRING% but cannot find anything close to a regular expression processing.
1 | FOR | EACH | LINE IN | F:\MMM\data.txt | DO 2 | RUN ACTION | DEFINE STRING VARIABLE | %STRING%::%LINE% # ex %LINE% = "45 12 80" 3 | RUN ACTION | ... # need %INTEGER%::45 %INTEGER1%::12 %INTEGER2%::80 4 | FOR | NEXT
Thanks for the help, Antoine
|
|
|
Post by Steve on Oct 17, 2020 21:33:57 GMT
Hi antoineSorry for the delay in getting to this one. Unfortunately we can't do delimiter our the variable like you've outlined with Mini Mouse Macro yet. I'm working on better ways to work with variables but it's not there yet. To get this working you will need to call something like batch or powershell to manipulate the string, save to a file, and then read it back into MMM. Cheers, Steve.
|
|
|
Post by philranger on Oct 23, 2020 18:58:38 GMT
Maybe you could first create a copy of your data file where you replace every delimiter (a space here?) by a return character?
|
|
hpw
Full Member
Posts: 30
|
Post by hpw on Oct 24, 2020 7:02:46 GMT
|
|