Is there a Macro Recording for Repeated Tasks???

jjdave
Posts: 4
Joined: Thu Nov 15, 2018 11:26 pm

Is there a Macro Recording for Repeated Tasks???

Post by jjdave » Tue Dec 03, 2019 1:23 am

HI All,
I have a following Tag Structure:

Code: Select all

<step>
   <cmd>XXXXX</cmd>
   <info>
      <fig><Title>XXXXX</title></fig>
   </Info>
</step>
All the information with the X's can be changed...
I repeat above Tag Structure 100s of times. Is there a easier way???
Is there a way to automate this tasks by creating & running the Macros or Scripts?

Thank you.

DmitryS
Posts: 8
Joined: Wed Nov 27, 2019 11:03 am

Re: Is there a Macro Recording for Repeated Tasks???

Post by DmitryS » Tue Dec 03, 2019 3:08 pm

Hi!
If your files have exacly the same structure, and it's possible to organize XXX as one row, maybe there's a reason to make a table with columns:

filename
cmd
title

and process it with MS SQL Server Cursor function. I made it once, 200 files per second.

Regards,
Dmitry

Radu
Posts: 6578
Joined: Fri Jul 09, 2004 5:18 pm

Re: Is there a Macro Recording for Repeated Tasks???

Post by Radu » Tue Dec 03, 2019 3:13 pm

Hi,

You can create code templates and use them in the editing area:

https://www.oxygenxml.com/doc/versions/ ... ting2.html

Inside those code template you can use editor variables which automatically get expanded by Oxygen on insert:

https://www.oxygenxml.com/doc/versions/ ... ables.html

There is an "ask" editor variable allowing you to pop up a dialog requiring the end user to insert a value every time the code template is inserted.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

jjdave
Posts: 4
Joined: Thu Nov 15, 2018 11:26 pm

Re: Is there a Macro Recording for Repeated Tasks???

Post by jjdave » Wed Dec 04, 2019 7:49 pm

Hi All,

Appreciate your response.
I just started using Oxygen XML Editor, so this is a bit advance level for me. But I will practice more and become better.

This was my first post, sorry for the double post.

Once again, thank you.
JJDave.

Post Reply