c++ - How to implement "record macro"-like functionality similar to Microsoft Excel? -


How to implement "Record Macro" in Microsoft Excel? As far as I know, I can embed a scripting interpreter (for example javascript) and in a web browser, I can create C ++ objects that are visible to scripts like DOM.

My question is how do you record user tasks and then generate this Javascript code? In Excel we can record a macro and it will generate appropriate VBA code.

How does one implement this feature in C ++ or other languages?

PS: Anybody can have a language / forum - I have to do this to think about how to do it.

One way to do this is to double event handlers for each menu item / button click.

A fire occurs in the form of standard event handlers, your secondary macro-builders' events fire. As macro event builders record a list of tasks you have done, e.g.

  Active Document> & gt; Save ActiveDocument-> SaveAs ActiveDocument-> Print  

You can then translate those actions into your desired scripting language.

Hope it helps.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -