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

From Lavish Software Wiki
Jump to navigation Jump to search
Line 11: Line 11:
  
 
== Examples ==
 
== Examples ==
*bind StopAll CTRL+X [[Command:EndScript|EndScript]] *
+
===List all keys available===
: This will bind run the [[Command:EndScript|EndScript]] command with the parameter *, which stops all running scripts, when you hold down CTRL and press the X key.
+
*Bind -Keylist
 +
;Output
 +
List of keys according to your keyboard driver:
 +
--------------------------
 +
'              [               enter          f22            k              num 7          shift       
 +
,              \              esc            f23            l              num 8          space       
 +
-              ]               f              f24            left            num 9          sys req     
 +
.              `              f1              f3              left windows    num del        t           
 +
/              a              f10            f4              m              num lock        tab         
 +
0              alt            f11            f5              n              o              u           
 +
1              application    f12            f6              num *           p              up           
 +
2              b              f13            f7              num +          page down      v           
 +
3              backspace      f14            f8              num -          page up        w           
 +
4              c              f15            f9              num /          pause          x           
 +
5              caps lock      f16            g              num 0          q              y           
 +
6              ctrl            f17            h              num 1          r              z         
 +
7              d              f18            help            num 2          right         
 +
8              delete          f19            home            num 3          right shift   
 +
9              down           f2              i              num 4          right windows 
 +
;              e              f20            insert          num 5          s             
 +
=              end            f21            j              num 6          scroll lock
  
*bind ChangeVariable "home" "MyVar:Set[!${MyVar}];echo ${MyVar}"
+
===List your current binds===
:To use multiple commands seperate them with a ;  Do not put a space after the ;
+
*Bind -List
 +
;Output
 +
Inner Space registered hotkeys:
 +
-----------------------------
 +
[console] [`] Command (Release): console "toggle"
 +
[memoryindicator] [Ctrl+Alt+M] Command (Release): hudgroup "-toggle" "memory indicator"
 +
[bob] [Shift+N] Command (Press): tiny
 +
[fullscreenkey] [Shift+Alt+F] Command (Release): fullscreen
 +
[normalkey] [Shift+Alt+N] Command (Release): normal
 +
[tinykey] [Shift+Alt+T] Command (Release): tiny
 +
[next] [Ctrl+Alt+X] Command (Release): uplink focus -next
 +
[previous] [Ctrl+Alt+Z] Command (Release): uplink focus -previous
 +
 
 +
===Clear all binds===
 +
*Bind -clear
 +
 
 +
===Delete a bind===
 +
*Bind -delete console
 +
;Output
 +
  Bind 'console' removed
 +
 
 +
===Create a bind on press===
 +
*Bind -press memoryindicator Ctrl+Alt+M "hudgroup -toggle \"memory indicator\""
 +
*Bind -press wireframeon f8 "wireframe on"
 +
 
 +
===Create a bind on release===
 +
*bind -release wireframeoff f8 "wireframe off"
  
 
== See Also ==
 
== See Also ==

Revision as of 18:59, 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

List all keys available

  • Bind -Keylist
Output
List of keys according to your keyboard driver:
--------------------------
'               [               enter           f22             k               num 7           shift         
,               \               esc             f23             l               num 8           space         
-               ]               f               f24             left            num 9           sys req       
.               `               f1              f3              left windows    num del         t             
/               a               f10             f4              m               num lock        tab           
0               alt             f11             f5              n               o               u             
1               application     f12             f6              num *           p               up            
2               b               f13             f7              num +           page down       v             
3               backspace       f14             f8              num -           page up         w             
4               c               f15             f9              num /           pause           x             
5               caps lock       f16             g               num 0           q               y             
6               ctrl            f17             h               num 1           r               z           
7               d               f18             help            num 2           right           
8               delete          f19             home            num 3           right shift     
9               down            f2              i               num 4           right windows   
;               e               f20             insert          num 5           s               
=               end             f21             j               num 6           scroll lock

List your current binds

  • Bind -List
Output
Inner Space registered hotkeys:
-----------------------------
[console] [`] Command (Release): console "toggle"
[memoryindicator] [Ctrl+Alt+M] Command (Release): hudgroup "-toggle" "memory indicator"
[bob] [Shift+N] Command (Press): tiny
[fullscreenkey] [Shift+Alt+F] Command (Release): fullscreen
[normalkey] [Shift+Alt+N] Command (Release): normal
[tinykey] [Shift+Alt+T] Command (Release): tiny
[next] [Ctrl+Alt+X] Command (Release): uplink focus -next
[previous] [Ctrl+Alt+Z] Command (Release): uplink focus -previous

Clear all binds

  • Bind -clear

Delete a bind

  • Bind -delete console
Output
Bind 'console' removed

Create a bind on press

  • Bind -press memoryindicator Ctrl+Alt+M "hudgroup -toggle \"memory indicator\""
  • Bind -press wireframeon f8 "wireframe on"

Create a bind on release

  • bind -release wireframeoff f8 "wireframe off"

See Also