home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 September / PCWorld_2008-09_cd.bin / komunikace / kmeleon / K-Meleon1.1.3en-US.exe / macros / domcomplete.kmm < prev    next >
Text File  |  2007-05-04  |  1KB  |  28 lines

  1. # K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
  2.  
  3. # ---------- Domain Completion -------------------------------------------------------------------------------------
  4. #
  5. # Dependencies    : main.kmm ($macroPrefBranch, OpenURL)
  6. # Resources    : -
  7. # Preferences    : kmeleon.plugins.macros.domComplete[0-2].prefix
  8. #          kmeleon.plugins.macros.domComplete[0-2].suffix
  9. #
  10. # ------------------------------------------------------------------------------------------------------------------
  11.  
  12. domComplete{
  13. $OpenURL=getpref(STRING,$_domComplete.$ARG.".prefix").$URLBAR.getpref(STRING,$_domComplete.$ARG.".suffix"); &OpenURL_Typed;
  14. }
  15.  
  16. # ----- PRIVATE
  17.  
  18. $_domComplete=$macroPrefBranch."domComplete";
  19.  
  20. _domComplete_SetAccels{
  21. setaccel("CTRL VK_RETURN","macros(domComplete(0))");
  22. setaccel("CTRL ALT VK_RETURN","macros(domComplete(1))");
  23. setaccel("CTRL SHIFT VK_RETURN","macros(domComplete(2))");
  24. }
  25. $OnInit=$OnInit."_domComplete_SetAccels;";
  26.  
  27. # ------------------------------------------------------------------------------------------------------------------
  28. $macroModules=$macroModules."domComplete;";