User Tools

Site Tools


on

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
on [2016/05/18 15:26]
sgrubnick
on [2016/05/18 15:27] (current)
sgrubnick
Line 4: Line 4:
 __on__ [#​][<​modes>​]<​event-type>​ [<​serial#>​] [-|^]<​wildcard>​ [{ <​action>​ }] __on__ [#​][<​modes>​]<​event-type>​ [<​serial#>​] [-|^]<​wildcard>​ [{ <​action>​ }]
  
-======Event Driven Programming====== +=====Event Driven Programming===== 
-Because the ircII language is event-driven,​ you control it by registering event handlers. ​ These are also called "​ONs"​ or "​Hooks"​. ​ Most of the time, the client is sleeping, waiting for something to happen. ​ When something does happen (if you press a key, or a server sends you something, or a timer expires), it //handles// it.  Part of the //​handling//​ is //​throwing//​ an //​event/​. ​ Through the [[ON]] command, you can have your code run when an //event// is //​thrown//​. ​ The primary use of [[ON]] is to allow you to control how events are displayed to windows.+Because the ircII language is event-driven,​ you control it by registering event handlers. ​ These are also called "​ONs"​ or "​Hooks"​. ​ Most of the time, the client is sleeping, waiting for something to happen. ​ When something does happen (if you press a key, or a server sends you something, or a timer expires), it //handles// it.  Part of the //​handling//​ is //​throwing//​ an //event//.  Through the [[ON]] command, you can have your code run when an //event// is //​thrown//​. ​ The primary use of [[ON]] is to allow you to control how events are displayed to windows.
  
 =====Uniqueness:​====== =====Uniqueness:​======
on.txt · Last modified: 2016/05/18 15:27 by sgrubnick