No5 IRC uses vbscript/javascript for scripting
So far is very basic. There is the omnipresent object no5, methods you call using
Call no5.SomeMethod()
and there are events which you receive declaring
Sub no5_OnSomeEvent(param1,param2)
' your code here
End Sub
In Javascript you write
var id = no5.SetTimer(1,1000);
function no5::OnTimer( id )
{
no5.Output("got time!");
}
The methods are:
- SendActiveChannelMsg([in] BSTR msg);
- SendChannelMsg([in] BSTR channel, [in] BSTR msg);
- SendPrivateMsg([in] BSTR to, [in] BSTR msg);
- SendNoticeMsg([in] BSTR to, [in] BSTR msg);
- JoinChannel([in] BSTR channel);
- LeaveChannel([in] BSTR channel,[in] BSTR msg);
- Quit([in] BSTR msg);
- SendPass([in] BSTR pw);
- SendNick([in] BSTR nick);
- SendUser([in] BSTR user,[in] BSTR name);
- ListChannels();
- GetTopic([in] BSTR channel);
- GetMode([in] BSTR NameOrChannel);
- WhoIs([in] BSTR nick);
- Who([in] BSTR nick);
- WhoWas([in] BSTR nick);
- Output([in] BSTR msg);
- LONG SetTimer([in] LONG id, [in] LONG ms);
- BSTR ActiveViewName
- Views Views
- Marquee Marquee
- DestroyMarquee(marquee)
- Text
Marquee
- BackColor
- AddItem(str,clr)
- Start
- Stop
- Loop(bool)
- bool Loop()
Text
- Bold,Italic,Underline,Strikeout
- BackColor, ForeColor
- PlainText
- Text
- Clear
The events are:
- OnChannelList([in] BSTR channel, [in] BSTR users, [in] BSTR topic);
- OnChannelMode([in] BSTR channel, [in] BSTR modes);
- OnUserMode([in] BSTR user, [in] BSTR modes);
- OnTopic([in] BSTR channel, [in] BSTR topic);
- OnNamesInChannel([in] BSTR channel, [in]users);
- OnChannelMsg([in] BSTR channel, [in] BSTR user,[in] TxtObj msg);
- OnPrivateMsg([in] BSTR user, [in] TxtObj msg);
- OnUserQuit([in] BSTR channel, [in] BSTR user, [in] BSTR msg);
- OnUserJoin([in] BSTR channel, [in] BSTR user);
- OnUserPart([in] BSTR channel, [in] BSTR user, [in] BSTR msg);
- OnNotice([in] BSTR user, [in] BSTR msg);
- OnAction([in] BSTR channel, [in] BSTR from, [in] BSTR msg);
- OnUnknownCmd([in] BSTR line);
- OnMeJoin([in] BSTR channel, [in] BSTR nick);
- OnTimer([in] LONG timerid);
I Found a good vbscript reference here
Unfortunately i didn't find a good vbscript tutorial
Good javascript reference and tutorial here