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

From Lavish Software Wiki
Jump to navigation Jump to search
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
== Syntax ==
 
== Syntax ==
 
{{CMD-DR|Bind|Intermediate|Beginner|Beginner|Beginner}}
 
{{CMD-DR|Bind|Intermediate|Beginner|Beginner|Beginner}}
bind -keylist|-list|-delete  <name> | [-press|-release] <name> <combo> <command>
+
bind -keylist|-list|-clear|-delete  <name> | [-press|-release] <name> <combo> <command>
 +
 
 +
== Forms ==
 +
*Bind -Keylist lists all keys recognized to be used in binding (based on Locale)
 +
*Bind -List lists all binds currently set
 +
*Bind -Clear removes all binds
 +
*Bind -Delete <name> deletes a bind with that name
 +
*Bind -Delete <name*> deletes all binds with that prefix
 +
*Bind [-press|-release] <name> <combo> <command> creates a bind
  
== Description ==
 
Using bind you can attach a command to a specific key combination.
 
 
== 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 available keys:
 +
--------------------------
 +
'                  C                  F22                Mouse5            Page Down   
 +
,                  Caps Lock          F23                Mouse6            Page Up     
 +
-                  Clear              F24                Mouse7            Pause       
 +
.                  Ctrl              F3                Mouse8            Q           
 +
/                  D                  F4                MouseWheelDown    R           
 +
0                  Delete            F5                MouseWheelUp      Right       
 +
1                  Down              F6                N                  Right Alt   
 +
2                  E                  F7                Num *             Right Ctrl 
 +
3                  End                F8                Num +             Right Shift 
 +
4                  Enter              F9                Num -              Right Windows
 +
5                  Esc                G                  Num /              S           
 +
6                  F                  H                  Num 0              Scroll Lock 
 +
7                  F1                Help              Num 1              Shift       
 +
8                  F10                Home              Num 2              Space       
 +
9                  F11                I                  Num 3              Sys Req     
 +
;                  F12                Insert            Num 4              T           
 +
=                  F13                J                  Num 5              Tab         
 +
[                  F14                K                  Num 6              U           
 +
\                  F15                L                  Num 7              Up         
 +
]                  F16                Left              Num 8              V           
 +
`                  F17                Left Windows      Num 9              W           
 +
A                  F18                M                  Num Del            X          
 +
Alt                F19                Mouse1            Num Enter          Y           
 +
Application        F2                Mouse2            Num Lock          Z           
 +
B                  F20                Mouse3            O                 
 +
Backspace          F21                Mouse4            P
 +
 
 +
===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
  
*bind ChangeVariable "home" "MyVar:Set[!${MyVar}];echo ${MyVar}"
+
===Create a bind on press===
:To use multiple commands seperate them with a ;  Do not put a space after the ;
+
*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 ==
 
*[[LavishScript:Commands|LavishScript Commands]]
 
*[[LavishScript:Commands|LavishScript Commands]]
 +
*[[IS:Kernel#Commands|Kernel Commands]]
 
*[[IS:Session#Commands|Inner Space Session Commands]]
 
*[[IS:Session#Commands|Inner Space Session Commands]]
 +
  
 
{{Command-Stub}}
 
{{Command-Stub}}
 
[[Category:Inner Space]]
 
[[Category:Inner Space]]
[[Category:Inner Space Session]]
+
[[Category:Inner Space Kernel]]
[[Category:Inner Space Session Commands]]
+
[[Category:Inner Space Kernel Commands]]

Latest revision as of 08:13, 4 February 2009

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 (based on Locale)
  • Bind -List lists all binds currently set
  • Bind -Clear removes all binds
  • Bind -Delete <name> deletes a bind with that name
  • Bind -Delete <name*> deletes all binds with that prefix
  • Bind [-press|-release] <name> <combo> <command> creates a bind

Examples

List all keys available

  • Bind -Keylist
Output
List of available keys:
--------------------------
'                  C                  F22                Mouse5             Page Down    
,                  Caps Lock          F23                Mouse6             Page Up      
-                  Clear              F24                Mouse7             Pause        
.                  Ctrl               F3                 Mouse8             Q            
/                  D                  F4                 MouseWheelDown     R            
0                  Delete             F5                 MouseWheelUp       Right        
1                  Down               F6                 N                  Right Alt    
2                  E                  F7                 Num *              Right Ctrl   
3                  End                F8                 Num +              Right Shift  
4                  Enter              F9                 Num -              Right Windows
5                  Esc                G                  Num /              S            
6                  F                  H                  Num 0              Scroll Lock  
7                  F1                 Help               Num 1              Shift        
8                  F10                Home               Num 2              Space        
9                  F11                I                  Num 3              Sys Req      
;                  F12                Insert             Num 4              T            
=                  F13                J                  Num 5              Tab          
[                  F14                K                  Num 6              U            
\                  F15                L                  Num 7              Up           
]                  F16                Left               Num 8              V            
`                  F17                Left Windows       Num 9              W            
A                  F18                M                  Num Del            X            
Alt                F19                Mouse1             Num Enter          Y            
Application        F2                 Mouse2             Num Lock           Z            
B                  F20                Mouse3             O                  
Backspace          F21                Mouse4             P

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