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=James] @JujuLand I think the SHIFT+r seems to be private to the Favorites menu. All I added was an amperstand in front of the R in the item I add to the menu. That makes the R in Rename-Add appear with an underscore. Pressing SHIFT + r will run my macro when the Favorites dropdown menu is seen. It does not run the menu unless the Favorites dropdown is showing. If I press SHIFT + r while the cursor is in this text field I just get a capital R. If my cursor is not in a text field when I press SHIFT + r then the cursor just randomly goes to a lowercase r somewhere on the page. I think the setaccel statement is for command ID and plugin. I did not use that. The code for the macro so far is as follows: # K-Meleon Macros # # ---------- FavRenAdd.kmm # ---------- K-Meleon Macro Language Rename/Add page to Favorites --------------- # # Dependencies : main.kmm, Favorites plugin active, JScript, Windows Scripting Host # Resources : - # Preferences : - # # -------------------------------------------------------------------------------- # _FavRenAdd_RnameTrue{ statusbar("Renaming"); $FavRenAdd_title = substr($FavRenAdd_value,1); $FavRenAdd_title = $FavRenAdd_title.".url" ; $FavRenAdd_OutText = $FavRenAdd_title.\n."[InternetShortcut]".\n.$FavRenAdd_CurURL ; setclipboard( $FavRenAdd_OutText ); } _FavRenAdd_RenameAdd{ $FavRenAdd_CurrTitle = $TITLE; $FavRenAdd_CurURL = $URL; statusbar("Rename Add in progress"); $FavRenAdd_value=prompt($FavRenAdd_CurrTitle,"Rename the Favorite Title here"); # cancel from prompt will return a length of zero to which we add one $FavRenAdd_value = 1.$FavRenAdd_value; $FavRenAdd_Len=length($FavRenAdd_value); # if the length is 1 cancelled was pressed on the prompt box $FavRenAdd_Len == 1 ? STATUSBAR(Rename _ Add CANCELLED):&_FavRenAdd_RnameTrue ; } _FavRenAdd_ModMenu{ # add another option to Favorites menu if favorites plugin is active $kFavorites==true?setmenu(F&avorites,macro,"&Rename-Add",_FavRenAdd_RenameAdd,1):0; } $OnInit=$OnInit."_FavRenAdd_ModMenu;";[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development