K-Meleon

KMeleonWiki > Resources > MacroLibrary > MacroLibrary2 > Multiclipboard


You can have 2 additional internal clipboards


In Macros:

$clip1 = "";
$clip2 = "";
copy_to_clipboard1 {
  $tmp = getclipboard();
  id(ID_EDIT_COPY);
  $clip1 = getclipboard();
  setclipboard($tmp);
}

copy_to_clipboard2 {
  $tmp = getclipboard();
  id(ID_EDIT_COPY);
  $clip2 = getclipboard();
  setclipboard($tmp);
}

paste_from_clipboard1 {
  $tmp = getclipboard();
  setclipboard($clip1);
  id(ID_EDIT_PASTE);
  setclipboard($tmp);
}

paste_from_clipboard2 {
  $tmp = getclipboard();
  setclipboard($clip2);
  id(ID_EDIT_PASTE);
  setclipboard($tmp);
}


In Menus:

TextPopup {
        &Undo = ID_EDIT_UNDO
        -
        Cu&t = ID_EDIT_CUT
        &Copy = ID_EDIT_COPY
        &Paste = ID_EDIT_PASTE
        &Delete = ID_EDIT_CLEAR
        -
        Select &All = ID_EDIT_SELECT_ALL
        -
        macros(copy_to_clipboard1, Copy to internal Clipboard 1)
        macros(copy_to_clipboard2, Copy to internal Clipboard 2)
        -
        macros(paste_from_clipboard1, Paste from internal Clipboard 1)
        macros(paste_from_clipboard2, Paste from internal Clipboard 2)
        bmpmenu()
}

The clipboards are only variables and are gone when you exit K-Meleon.

At the moment this only works with textfields.


Comments & Questions

K-Meleon

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.