macrotocreatethemenuentry{ setmenu("LinkSave", macro, "menuentryname", "macrothathandlestheopeninchroumiun",[5,$_SendTo_Link]); } $OnSetup = $OnSetup."macrotocreatethemenuentry;";
Quote
Mello
When I right click on a link which I want to send to Chromium browser I'd prefer to have Chromium appear directly in the main context menu rather than in the "Send Link To" submenu.
Is it possible to combine "Send Link To" function with submenu Chromium function?
Quote
Chromium_OpenLink{
menugrayed=($Chromiumpath=="");
$Chromiumlinkurl=($Chromiumpath." ".$LinkURL);
exec($Chromiumlinkurl);
}
_Chromium_BuildMenu{
setmenu($_SendTo_Page,macro,"Chromium",Chromium_OpenPage);
setmenu($_SendTo_Link,macro,"Chromium",Chromium_OpenLink);
}
Quote
Mello
Thanks both
I've played around a bit - can get menu entry moved easily but Chromium doesn't open.
Using macro as an example
macro is called chromium.kmm
Default link and menu entries inside are:
Quote
Chromium_OpenLink{
menugrayed=($Chromiumpath=="");
$Chromiumlinkurl=($Chromiumpath." ".$LinkURL);
exec($Chromiumlinkurl);
}
_Chromium_BuildMenu{
setmenu($_SendTo_Page,macro,"Chromium",Chromium_OpenPage);
setmenu($_SendTo_Link,macro,"Chromium",Chromium_OpenLink);
}
Quote
siria
Quote
Mello
Thanks both
I've played around a bit - can get menu entry moved easily but Chromium doesn't open.
Using macro as an example
macro is called chromium.kmm
Default link and menu entries inside are:
Quote
Chromium_OpenLink{
menugrayed=($Chromiumpath=="");
$Chromiumlinkurl=($Chromiumpath." ".$LinkURL);
exec($Chromiumlinkurl);
}
_Chromium_BuildMenu{
setmenu($_SendTo_Page,macro,"Chromium",Chromium_OpenPage);
setmenu($_SendTo_Link,macro,"Chromium",Chromium_OpenLink);
}
What makes no sense:
if that macro "Chromium_OpenLink" works from inside the SendTo submenu, then it must work equally from all other menu locations too, as long as a $LinkURL exists. It could possibly have a prob if the chromium folder path contains a blank, but that would break in ALL menu locations too.
Does the error console say anything? (with "All" errors enabled, check first directly after KM startup, then check after clicking that command)
And for testing would insert a line above the exec:
alert("$LinkURL: ".$LinkURL."\n$Chromiumpath: ".$Chromiumpath,"debug SendToChromium");