Difference between revisions of "ISKernel:Bind (Command)"

From Lavish Software Wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
bind -keylist|-list|-clear|-delete  <name> | [-press|-release] <name> <combo> <command>
 
bind -keylist|-list|-clear|-delete  <name> | [-press|-release] <name> <combo> <command>
  
== Description ==
+
== Forms ==
Using bind you can attach a command to a specific key combination.
+
*Bind -Keylist lists all keys recognized to be used in binding
 +
*Bind -List lists all binds currently set
 +
*Bind -Clear removes all binds
 +
*Bind -Delete <name> deletes a bind with that name
 +
*Bind [-press|-release] <name> <combo> <command> creates a bind
 +
 
 
== Examples ==
 
== Examples ==
 
*bind StopAll CTRL+X [[Command:EndScript|EndScript]] *
 
*bind StopAll CTRL+X [[Command:EndScript|EndScript]] *

Revision as of 18:47, 24 August 2005

Syntax

Command Difficulty Rating
Bind
Usage Intermediate
Level of Understanding Beginner
Computer Savvy Beginner
Logic Beginner

bind -keylist|-list|-clear|-delete <name> | [-press|-release] <name> <combo> <command>

Forms

  • Bind -Keylist lists all keys recognized to be used in binding
  • Bind -List lists all binds currently set
  • Bind -Clear removes all binds
  • Bind -Delete <name> deletes a bind with that name
  • Bind [-press|-release] <name> <combo> <command> creates a bind

Examples

This will bind run the EndScript command with the parameter *, which stops all running scripts, when you hold down CTRL and press the X key.
  • bind ChangeVariable "home" "MyVar:Set[!${MyVar}];echo ${MyVar}"
To use multiple commands seperate them with a ; Do not put a space after the ;

See Also