General
: K-Meleon Forum
General discussion about K-Meleon.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=desga2] @ foobarly: All for your: [code] # Top of kmm file ------------------------------------------------- # K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage) # ---------- Oget (Download with external download manager) ------- ## Needed files : flashgot.exe, oget.exe, oget.ini # flashgot.exe: https://addons.mozilla.org/en-US/firefox/addon/220 # oget.exe: http://lexi.ucoz.ru/oget_only.zip # ----------------------------------------------------------------- # Example : # $_Oget_Path="\"C:\\Program Files\\K-Meleon\\Oget\\Oget.exe\" %1" # ----------------------------------------------------------------- $PATH = getfolder(RootFolder); $_Oget_Path="\"".$PATH."\\oget\\oGet.exe\" %1"; $_Oget_CommandLine=""; $_Oget_ini="oget\\oget.ini"; $_INI_Content=""; $_Oget_DM=""; # ---------- General ---------------------------------------------- Oget_Path{ $ext="kmm"; &getExtensionHandler; exec(sub("%1","macros\\Download_manager.kmm",$cmdline)); } _Oget_CommandLine{ $_Oget_CommandLine=$_Oget_Path; } # ----- MACROS ----------------------------------------------------- Oget{ menugrayed=($_Oget_CommandLine==""); exec(sub("%1",$LinkURL ? $LinkURL." ".$URL." ".$SelectedText : $ImageURL,$_Oget_CommandLine)); } SelectDM{ menugrayed=($_Oget_CommandLine==""); exec(sub("%1","",$_Oget_CommandLine)); } # ----- PRIVATE ---------------------------------------------------- _Oget_DetectDM{ $sta_pos=index($_INI_Content,"DM="); $sta_pos=$sta_pos+3 $sto_pos=index($_INI_Content,"AllDM="); $sto_pos=$sto_pos-1 $_Oget_DM=substr($_INI_Content,$sta_pos, ($sto_pos-$sta_pos)); } _Default_cm{ setmenu(LinkSave,macro,"Download link with &Oget",Oget,ID_SAVE_LINK_AS); setmenu(ImageSave,macro,"Download image with &Oget",Oget,ID_SAVE_IMAGE_AS); } _Detected2_cm{ setmenu(LinkSave,macro,$_Oget_DM,Oget,ID_SAVE_LINK_AS); setmenu(ImageSave,macro,$_Oget_DM,Oget,ID_SAVE_IMAGE_AS); } _Detected_cm{ $_Oget_DM=="No"? &_Default_cm: &_Detected2_cm; } _Oget_BuildMenu{ $_INI_Content=readfile($_Oget_ini); $_INI_Content==""? 0: &_Oget_DetectDM; setmenu(Misc,macro,"Download managers",SelectDM,ID_SELECT_DM); # context menus $_Oget_DM==""?&_Default_cm:&_Detected_cm; # accel setaccel("SHIFT ALT W","macros(Oget_Path)"); } # $OnInit=$OnInit."_Oget_CommandLine;"."_Oget_BuildMenu;"; # ------------------------------------------------------------------ $macroModules=$macroModules."Oget;"; # End of kmm file -------------------------------------------------- [/code] - Changes download manager name in menus requiered K-Meleon restart. * Only one requisite to work fine, in oget.ini file, 'DM=' value must be before than 'AllDM=' value. Example for ever; ... DM= AllDM= ... Greetings and Merry Christmas to everyone.[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development