hotlink{ macroinfo=_("Open the specified hotlink"); $OpenURL=getpref(STRING,$_hotlink.$ARG.".url"); $OpenURL==""? 0 : ( getpref(BOOL,$_hotlink.$ARG.".new")?&OpenURL_InNewpen($OpenURL)); }Not really sure how to stop the "OpenURL" and point to the Groups2 macro.
Quote
SoerenB
Is there any way to open a "Groups2" group from a hotlink ..
hotlink{ macroinfo=_("Open the specified hotlink"); $OpenURL=getpref(STRING,$_hotlink.$ARG.".url"); if ( substr ( $OpenURL,0,1) == "&" ) { $_Groups2_GName = substr( $OpenURL,1); plugin(macros, "Groups2_OpenGroup(" . $_Groups2_GName .")") ; } else { $OpenURL=="" ? 0 : (getpref(BOOL,$_hotlink.$ARG.".new")?&OpenURL_InNewpen($OpenURL)); } }
Quote
JamesD
Quote
SoerenB
Is there any way to open a "Groups2" group from a hotlink ..
Yes, you can. This requires a change to the KM macro file 'hotlink.kmm'. The first macro named 'hotlink' in that file can be replaced with the following code:
hotlink{ macroinfo=_("Open the specified hotlink"); $OpenURL=getpref(STRING,$_hotlink.$ARG.".url"); if ( substr ( $OpenURL,0,1) == "&" ) { $_Groups2_GName = substr( $OpenURL,1); plugin(macros, "Groups2_OpenGroup(" . $_Groups2_GName .")") ; } else { $OpenURL=="" ? 0 : (getpref(BOOL,$_hotlink.$ARG.".new")?&OpenURL_InNewpen($OpenURL)); } }
For whichever hotlink number that you wish to be a group, just enter the group name preceded by the & character in the place where you would normally put a site URL.
Quote
siria
(oops, was nonsense)
Quote
desga2
A new experimental version with HotGroups feature added:
Download new Groups2 0.6.3ex.
Only Hotlinks checked in Groups -> Options -> HotGroups menu are opened like Group/Nick.
This new experimental version overlayed default hotlinks accelerators Ctrl+[0-9].
Thanks for colaboration to this experimental version, with his ideas and code, to:
SoerenB
JamesD
siria
jsnj
Quote
JamesD
@ desga2
I guess I am old and cannot see the tree for the forest, but what steps do I take to set a hot group?
Quote
jsnj
Seems the macro modules are initiated alphabetically, so since the hotlinks macro module is initiated after the groups2_HotGroups macro module, its accels override the HotGroups accels. Either the "groups2_HotGroups" name has to be changed to be initiated after "hotlinks" or the groups2_HotGroups macro has to be coded differently.
Quote
desga2
...
I'm using groups2_HotGroups.kmm file from \macros subdirectory in my KM user profile, not in main \K-Meleon\macros folder.
User Defined Macros are loaded at the end, after main macros.
If you are using HotGroups macro from main \K-Meleon\macros folder you can rename the macro file from groups2_HotGroups.kmm to x_HotGroups2.kmm, for example, to macro file will be loaded after hotlink.kmm macro module and accelerators will be overlayed.
Greetings.
Quote
desga2
Quote
jsnj
Seems the macro modules are initiated alphabetically, so since the hotlinks macro module is initiated after the groups2_HotGroups macro module...
It's working fine for me. Is posible KM load macro modules in alphabetical order because load macro modules from \macros folder and this are sorted alphabetically by Windows.