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

From Lavish Software Wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
Press -keylist|[-hold|-release] <key combination>
 
Press -keylist|[-hold|-release] <key combination>
  
== Description ==
+
== Forms ==
Press is used to emulate keystrokes.  With no switches given, Press will first hold down each of the keys in the given order, and then release them.  If -hold or -release switches are given, the keys will either only be held, or only be released -- which can be useful when an action requires holding a key or key combination while being performed.
+
*Press -keylist displays a list of keys available (based on Locale)
 
+
*Press <key combination> will hold down keys in order given then release them
Key names are given by your keyboard driver. To see the full list of keys for your current input locale, use Press -keylist.
+
*Press -hold <key combination> will hold down the key combination
 +
*Press -release <key combination> will release the keys in key combination
 +
*Press -nomodifiers <key combination> will release any modifiers for the duration of pressing the given combo. May not be used with -release or -hold.
  
 
== Examples ==
 
== Examples ==
 +
===Display all available keys===
 
*Press -keylist
 
*Press -keylist
: Lists all available keys
+
;Output
 +
List of available keys:
 +
--------------------------
 +
'              8              C              F10            F22            Home          Mouse5        Num 2          Page Down      Space 
 +
,              9              Caps Lock      F11            F23            I              Mouse6        Num 3          Page Up        Sys Req
 +
-              ;              Clear          F12            F24            Insert        Mouse7        Num 4          Pause          T     
 +
.              =              Ctrl          F13            F3            J              Mouse8        Num 5          Q              Tab   
 +
/              [              D              F14            F4            K              MouseWheelDown Num 6          R              U     
 +
0              \              Delete        F15            F5            L              MouseWheelUp  Num 7          Right          Up   
 +
1              ]              Down          F16            F6            Left          N              Num 8          Right Alt      V     
 +
2              `              E              F17            F7            Left Windows  Num *          Num 9          Right Ctrl    W     
 +
3              A              End            F18            F8            M              Num +          Num Del        Right Shift    X     
 +
4              Alt            Enter          F19            F9            Mouse1        Num -          Num Enter      Right Windows  Y     
 +
5              Application    Esc            F2            G              Mouse2        Num /          Num Lock      S              Z     
 +
6              B              F              F20            H              Mouse3        Num 0          O              Scroll Lock   
 +
7              Backspace      F1            F21            Help          Mouse4        Num 1          P              Shift
 +
 
 +
===Press specific keys===
 
*Press Ctrl+Alt+X
 
*Press Ctrl+Alt+X
: Presses and then releases Ctrl+Alt+X
+
:Presses Ctrl, then Alt, then X, then releases them
 +
===Hold specific keys===
 
*Press -hold Shift
 
*Press -hold Shift
 
: Presses and holds Shift
 
: Presses and holds Shift
 +
===Release specific keys===
 
*Press -release Shift
 
*Press -release Shift
 
: Releases shift, used after a Press -hold
 
: Releases shift, used after a Press -hold
  
 
== See Also ==
 
== See Also ==
 +
*[[ISKernel:Type_%28Command%29|Type command]]
 
*[[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:12, 4 February 2009

Syntax

Command Difficulty Rating
Press
Usage Beginner
Level of Understanding Beginner
Computer Savvy Beginner
Logic Beginner

Press -keylist|[-hold|-release] <key combination>

Forms

  • Press -keylist displays a list of keys available (based on Locale)
  • Press <key combination> will hold down keys in order given then release them
  • Press -hold <key combination> will hold down the key combination
  • Press -release <key combination> will release the keys in key combination
  • Press -nomodifiers <key combination> will release any modifiers for the duration of pressing the given combo. May not be used with -release or -hold.

Examples

Display all available keys

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

Press specific keys

  • Press Ctrl+Alt+X
Presses Ctrl, then Alt, then X, then releases them

Hold specific keys

  • Press -hold Shift
Presses and holds Shift

Release specific keys

  • Press -release Shift
Releases shift, used after a Press -hold

See Also