Macro >> Find and Replace

Started by Alain, February 16, 2013, 04:41:49 PM

Previous topic - Next topic

Alain

I want Find and Replace automatically by Macro
BUT when I register Find/Replace, the macro register only the Find part...
********************************
<?xml version="1.0" encoding="utf-8"?>
<FILEINFO author="Al" type="Macro" descr="Macro file for HippoEDIT"/>
<MACRO>
   <Find check_hidden="false" wrap="false" what="t813 " action="3"/>
</MACRO>
*****************************
What means action="3"   ?
How to REPLACE ?

HE is great but the Wiki don't Help in this case
Alain

alex

#1
Hi Alain,

action="3" means ReplaceAll, but by design you shall get <Replace ...> instead of <Find...>.
Code (xml) Select
<?xml version="1.0" encoding="utf-8"?>
<FILEINFO type="Macro" descr="Macro file for HippoEDIT"/>
<MACRO>
<Replace what="output" action="3" to="doc"/>
</MACRO>


It is a bug, I will fix it in next beta.

I have not covered Macro topic in the wiki yet. It will come.

BR,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Alain

Thank

In Edit macro, I have tested with the word REPLACE (because that seems logic)
but I writed WITH="xyz"  ....  and lost : it"s ...TO="xyz"
(But in the Find/Replace window the text is "with")

Alain

alex

Sorry Alain,

did not get what you mean :/

What was a macro (full source) and what was a result?
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Alain

It was just before your reply, I have tested some possibilities:

In the macro I have tested the word REPLACE with "What=abc" and "With=xyz"
this don't work, because your key word is "To=...."
and work fine with TO not WITH.

Just to say : in your little window for Find/Replace, your text before input  is "Replace With".... not " Replace To"
and it's "Find What":  and "What" is the Key word in your macro : just for cohesion !

ah ah
Alain