I have been trying to write a little "append to clipboard" script. However, in
build 2284 neither of the two new clipboard functions seems to work.
I have tried "getClipboardText", "getClipBoardText" and "getClipboardtext", but
nothing has worked so far.
Here's what I tried:
// Constants:
module_name = "clip_append";
module_ver = "1.0";
menu_name = "Utilities";

function Init()
{
  addMenuItem("Append to clipboard", menu_name, "append", "Ctrl+Alt+c");
  //addMenuItem("Edit script", menu_name, "openScript");
}

function append()
{
  var obj1 = newEditor();
  try
  {
    obj1.assignActiveEditor();
  }
  catch(e)
  {
    return;
  }
  var inpString = obj1.SelText();
  //echo(inpString);
  var clipString = getClipboardText();
  echo(clipString);
  setClipboardText(clipString+inpString+"Test1234");
}


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

Odpovedet emailem