how to run a notepad++ macro from vbscript or powershell?
I 'm trying to run a vbscript and to open notepad++ , open a txt file and run a macro that i have allready made.
is that possible?
till now I have this…
Set objShell = WScript.CreateObject( “WScript.Shell” )
Set objShell = Nothing
but I dont know how to run the macro command
Yaron last edited by Yaron
- Assign a shortcut to your macro via Settings -> Shortcut Mapper -> Macros.
- Add the following lines to the script.
objShell.run... WScript.Sleep(100) ' Let NPP load and open the file. Adjust the number of milliseconds to your machine. objShell.SendKeys("^+9") ' "^+9" is Ctrl+Shift+9. Replace it with your preferred shortcut.
that worked fine!!!