How do I have Notepad++ autorun a macro?

I have a macro created in Notepad++ (v6.1) and would like for it to autorun when Notepad++ is opened without manual intervention. Is there a command line entry option whether via batch file of some sort of script? My initial intent is to automate a find and replace via macro for a text file. This would be added to a macro in Microsoft Access. The Access macro would open a specified text file via Notepadd++ perform the designated find and replace, then close the text file (Notepadd++), then continue on with the next Access macro function.

I am not aware of a way to do that automatically or from the command line.

You can use NppExec though to create a script, possibly doing what you need done, and then mark that script to run automatically when Notepad++ starts. But it will of course run every time NPP starts, not just when called from Access.

When you have Autohotkey downloaded and installed - you will need to start an ahk file.

I will see if I can write a basic ahk file for you that will detect that Notepad++ has started.

What is it exactly that the script in Notepad++ does? And how do you start it up manually in Notepad++?

And if I've got it straight - in Access you have a script, that when run opens op Notepad++ and then you want it to run a script in Notepad++ that replaces text. The text that needs to be replaced and the text to replace - are they provided for in Access?

Why are you using Access for this? As in - what functionality does Access have that you need Notepad++ for?

Those were all my questions for now.
Here is a simple AHK script which detects if Notepad++.exe process has started up and pops up a message if it has.

#SingleInstance FORCE; Detect Notepad++Loop {Process, Wait, Notepad++.exeMsgBox Notepad++ has started; ****** do stuff here with Notepad++ ****** ; then close Notepadd++ and it will loop around and wait till it starts up againProcess, Close, Notepad++.exe}

One of the biggest challenges facing freelancers is balancing multiple projects and deadlines. Organizational skills and time management are key to keeping up with projects and staying on track. Luckily, we’ve curated seven tools to help you focus o…

This video Micro Tutorial is the first in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 (http://www.experts-exchange.com/articles/17490/). But the ability to create custom scanning profiles al…

This video Micro Tutorial is the second in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 (http://www.experts-exchange.com/articles/17490/). But the ability to create custom scanning profiles a…