I am doing something like this in my F5 command (execute)
C:\Python27\pythonw.exe G:\my_python_script.py
I want to run this script everytime i save file. When i save this command as ctrl+s, notepad++ does not run it, only save my file.
|
I am doing something like this in my F5 command (execute)
I want to run this script everytime i save file. When i save this command as |
|||||
|
|
If you use the NppExec plugin, the following macro will do what you want:
This can be bound to any key combination, does not rely on any existing shortcuts, and will bring up a save dialog if necessary. |
|||
|
|
You can use AutoHotkey to easily create macros. For your case, the following script will work:
You may need to run the script as an administrator, since Notepad++ uses it's own keyboard hooks. Download: http://ahk.igalvez.net/Notepad++SaveRun.exe, 784KB |
|||
|
|
|
You can save a macro that will do this. First, change the file so you can save. Then Now you can either save this macro as If you must have it as a global hook into Hope this helps! |
|||||||||
|