vbr:
--------------------------------------------------------------------------------
thomasj:
--------------------------------------------------------------------------------
... I'd like is to have a keyboard shortcut to create a new text file. I know I
can use Ctrl+N, but then I have to hit return once more to tell the system I
want a text file....
--------------------------------------------------------------------------------


Well, you can probably achieve this behaviour with a simple script like this

///// NewFileScript.js /////////////////

var module_name = "NewFileScript";
var module_ver = "1";

var indexFile=1;
function newFile(){
myNewEditor = newEditor();
myNewEditor.newFile("NewFile_"+indexFile+".txt");
indexFile += 1;
}

function Init(){
addMenuItem("New file", "", "newFile","Ctrl+Shift+N");
}

/////////////////////

Save the code between slashes as e.g. 
...\PSPad\Script\JScript\NewFileScript.js

Call: Scripts: Reload scripts
And press Ctrl+Shift+N (or any other shortcut you set in the Init).

(This solution requires the WSH scripting support of PSPad to be active.)
--------------------------------------------------------------------------------


Thanks a ton, works like a charm.

regards Thomas

-- 
<http://forum.pspad.com/read.php?2,47204,48012>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem