How to reload file within Calcpad without restarting
Install https://github.com/guilryder/clavier-plus
Create file:
C:\my-cli\npp-run-calcpad.bat:
" %SystemRoot% \System32\chcp.com" 65001 > nul
" %SystemRoot% \System32\tasklist.exe" | " %SystemRoot% \System32\find.exe" " Calcpad.exe" || (" %programfiles% \Clavier\Clavier.exe /sendkeys " [{Focus,10,*Notepad++}][Ctrl+S]" & timeout 1 & start " " " %programfiles% \Calcpad\Calcpad.exe" " %~1 " & exit)
" %programfiles% \Clavier\Clavier.exe" /sendkeys " [{Focus,10,*Notepad++}][Ctrl+S][{Copy,%~1 }][{Wait,10}][{Focus,10,Calcpad 5.*}][{Wait,10}][Alt][{Wait,10}][Down][{Wait,10}][Enter][{Wait,10}][Right][{Wait,10}][Enter][{Wait,10}][Ctrl+Z][{Wait,10}][Ctrl+Z][{Wait,10}][Ctrl+O][{Wait,10}][Ctrl+V][{Wait,10}][Enter][{Wait,200}][{Focus,200,*Notepad++}]"
Change shortcuts.xml inside Notepad++ folder:
<?xml version =" 1.0" encoding =" UTF-8" ?>
<NotepadPlus >
<InternalCommands />
<Macros >
<Macro name =" Trim Trailing Space and Save" Ctrl =" no" Alt =" yes" Shift =" yes" Key =" 83" >
<Action type =" 2" message =" 0" wParam =" 42024" lParam =" 0" sParam =" " />
<Action type =" 2" message =" 0" wParam =" 41006" lParam =" 0" sParam =" " />
</Macro >
</Macros >
<UserDefinedCommands >
<Command name =" Get PHP help" Ctrl =" no" Alt =" yes" Shift =" no" Key =" 112" >https://www.php.net/$(CURRENT_WORD)</Command >
<Command name =" Wikipedia Search" Ctrl =" no" Alt =" yes" Shift =" no" Key =" 114" >https://en.wikipedia.org/wiki/Special:Search?search=$(CURRENT_WORD)</Command >
<Command name =" Open selected file path in new instance" Ctrl =" no" Alt =" yes" Shift =" no" Key =" 117" >$(NPP_FULL_FILE_PATH) $(CURRENT_WORD) -nosession -multiInst</Command >
<Command name =" CalcPad" Ctrl =" no" Alt =" no" Shift =" no" Key =" 120" >C:\my-cli\npp-run-calcpad.bat " $(FULL_CURRENT_PATH)" </Command >
</UserDefinedCommands >
<PluginCommands />
<ScintillaKeys >
<ScintKey ScintID =" 2469" menuCmdID =" 42010" Ctrl =" yes" Alt =" no" Shift =" yes" Key =" 68" />
</ScintillaKeys >
</NotepadPlus >
NOTE!!! It runs by F9 now (Key="120"
) - you can change it from menu Run -> Modify Shortcut/Delete command
Remove RunMe plugin from Notepad++ if you don't use it for other cases.
Install https://github.com/guilryder/clavier-plus
Create file:
C:\my-cli\cudatext-run-calcpad.bat:
" %SystemRoot% \System32\chcp.com" 65001 > nul
" %SystemRoot% \System32\tasklist.exe" | " %SystemRoot% \System32\find.exe" " Calcpad.exe" || (start " " " %programfiles% \Calcpad\Calcpad.exe" " %~1 " & exit)
" %programfiles% \Clavier\Clavier.exe" /sendkeys " [{Copy,%~1 }][{Wait,10}][{Focus,10,Calcpad 5.*}][{Wait,10}][Alt][{Wait,10}][Down][{Wait,10}][Enter][{Wait,10}][Right][{Wait,10}][Enter][{Wait,10}][Ctrl+Z][{Wait,10}][Ctrl+Z][{Wait,10}][Ctrl+O][{Wait,10}][Ctrl+V][{Wait,10}][Enter][{Wait,200}][{Focus,200,*Notepad++}]"
Install plugin "External Tools"
Add tool with Tools -> Config… -> Add…:
Name: cudatext-run-calcpad.bat
File name: C:\my-cli\cudatext-run-calcpad.bat
Parameters: {FileName}
Initial folder: {FileDir}
Lexers: Calcpad
Save before: Current document
Hotkey: F9
Capture output: Ignore
Great Job! Thank you for sharing!