Hello jitterjames! could you help with the pattern.
There is a Custom file.txt from which to find some text.
I made this pattern:
<(.*?)>\n\t\t<Primary\sDevice="Keyboard"\sKey="Key_(.*?)"\s/>\n\t\t<Secondary\sDevice="Keyboard"\sKey="Key_(.*?)"\s/>
and it seems to work in Regular Expression Helper, but for some reason it does not want to work when executing the command. could you tell me what could be wrong
here is the command code:
<?xml version="1.0" encoding="utf-16"?>
<!--VoxCommando 2.2.4.7-->
<commandGroup open="True" name="Test" enabled="True" prefix="" priority="0" requiredProcess="" description="">
<command id="1337" name="find and save match's" enabled="true" alwaysOn="False" confirm="False" requiredConfidence="0" loop="False" loopDelay="0" loopMax="0" description="">
<action>
<cmdType>File.Read</cmdType>
<params>
<param>D:\Custom.txt</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<action>
<cmdType>Results.RegEx</cmdType>
<params>
<param><(.*?)>\n\t\t<Primary\sDevice="Keyboard"\sKey="Key_(.*?)"\s/>\n\t\t<Secondary\sDevice="Keyboard"\sKey="Key_(.*?)"\s/></param>
<param />
<param>{LastResult}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
<loop>
<loopParams>
<from>1</from>
<to>{#M}</to>
</loopParams>
<loopActions>
<action>
<cmdType>File.AppendLine</cmdType>
<params>
<param>D:\Custom_Result.txt</param>
<param>{Match.{j}.1}</param>
</params>
<cmdRepeat>1</cmdRepeat>
</action>
</loopActions>
</loop>
</command>
</commandGroup>