Nice Script
. How about checking the registry for what all browsers are available and showing buttons only for available ones. Like if
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer show the Internet Explorer button and all
.
Also a bug
.
code:
if(MenuItemId=="set2"){
OnEvent_ChatWndSendMessage("", "/favourites")
}
code:
if(Message.substr(0,6)=="/faves"){
try{
WndLinks.Close(1);
}catch(e){
Shouldn't it be
OnEvent_ChatWndSendMessage("", "/faves") ?
Another bug
When no link is selected nothing should open up instead of
unidentified
Some more things
code:
function GetFavouritesFolder(){
var CSIDL_FAVORITES = 0x0006;
var szSendToPath = Interop.Allocate((255 *2) +2);
Interop.Call("Shell32", "SHGetSpecialFolderPathW", 0, szSendToPath, CSIDL_FAVORITES, 0);
return szSendToPath.ReadString(0);
}
See Opera's Command Line Options