![]() |
![]() |
The Commandline Input FeaturesCommandline input features |
|||
Principles of operation | |||
The idea is simple: anything that starts with a slash (/) character is interpreted as a command. Anything else is plain text that is sent to the target of the window (channel, query, dcc chat etc..). | |||
The two operating modes | |||
The commandline input has two operating modes: the "user friendly mode" and the "kvs mode". In the user friendly mode all the parameters of the commands are interpreted exactly like you type them. There is no special interpretation of $,%,-,( and ; characters. This allows you to type "/me is happy ;)", for example. In the kvs mode the full parameter interpretation is enabled and the commands work just like in any other script editor. This means that anything that starts with a $ is a function call, anything that starts with a % is a variable, the dash characters after command names are interpreted as switches and ; is the command separator. This in turn does NOT allow you to type "/me is happy ;)" because ; is the command separator and ) will be interpreted as the beginning of the next command. In KVS mode you obviously have to escape the ; character by typing "/me is happy \;)". The user friendly mode is good for everyday chatting and for novice users while the KVS mode is for experts that know that minimum about scripting languages. Please note that in the user-friendly mode you're not allowed to type multiple commands at once :). | |||
Default Key Bindings: | |||
Ctrl+B: Inserts the 'bold' mIRC text control character Ctrl+K: Inserts the 'color' mIRC text control character Ctrl+R: Inserts the 'reverse' mIRC text control character Ctrl+U: Inserts the 'underline' mIRC text control character Ctrl+O: Inserts the 'reset' mIRC text control character Ctrl+P: Inserts the 'non-crypt' (plain text) KVIrc control character used to disable encryption of the current text line Ctrl+Z: Undo the last action Ctrl+Y: Redo the last undoed action Ctrl+C: Copies the selected text to clipboard Ctrl+X: Cuts the selected text Ctrl+V: Pastes the clipboard contents (same as middle mouse click) Ctrl+I: Inserts the 'icon' control code and pops up the icon list box Ctrl+A: Select all Ctrl+L: Paste file CursorUp: Moves backward in the command history CursorDown: Moves forward in the command history CursorRight: Moves the cursor to the right CursorLeft: Moves the cursor to the left :) Shift+CursorLeft: Moves the selection to the left Shift+RightCursor: Moves the selection to the right Ctrl+CursorLeft: Moves the cursor one word left Ctrl+CursorRight: Moves the cursor one word right Ctrl+Shift+CursorLeft: Moves the selection one word left Ctrl+Shift+CursorRight: Moves the selection one word right Tab: Nickname, function/command, or filename completion (see below) Shift+Tab: Hostmask or function/command completion (see below) Alt+<numeric_sequence>: Inserts the character by ASCII/Unicode code
If you drop a file on this widget, a <a href="parse.kvihelp">/PARSE <filename></a> will be executed. You can enable word substitution in the preferences dialog. For example, if you choose to substitute "afaik" with "As far as I know", when you will type "afaik" somewhere in the command line, and then press Space or Return, that word will be replaced with "As far as I know". Experiment with it :) The Tab key activates the completion of the current word. If a word is prefixed with a '/', it is treated as a command to be completed, if it begins with '$', it is treated as a function or identifier to be completed, otherwise it is treated as a nickname or filename to be completed.
|