home *** CD-ROM | disk | FTP | other *** search
RISC OS BBC BASIC V Source | 1997-03-21 | 957 b | 38 lines |
- >KeyBinder
- InitialiseModule
- StartupStatus("Initialising KeyBinder...")
- file,line$,key$,command$
- ?file =
- newFile("<IRClient$Dir>.Scripts.User.Bindings","<")
- file
- line$<>eof$
- line$<>""
- key$=
- oneparam(line$)
- command$=
- moveon(line$)
- key$<>""
- command$<>""
- BindKey(key$,command$)
- "
- key$<>""
- command$=""
- =
- "Warning - key "+key$+" has no associated binding"
-
- line$=
- file.ReadLine
- _InsertStr(parmlist)
- InputInsertStr(parmlist.data.data$)
- _IRCCommand(parmlist)
- UserLine(parmlist.data.data$)
- _CloseDisplay(parmlist)
- CloseDisplay(parmlist.data.data$)
- _Leave(parmlist)
- channel$
- ( channel$=parmlist.data.data$
- channel$,1)="#"
- channel$,2,1)<>"#"
- UserLine("/LEAVE "+channel$)
- CloseDisplay(channel$)
-