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

From Lavish Software Wiki
Jump to navigation Jump to search
Line 4: Line 4:
  
 
== Description ==
 
== Description ==
 +
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.
 +
 +
Key names are given by your keyboard driver.  To see the full list of keys for your current input locale, use Press -keylist.
  
 
== Examples ==
 
== Examples ==
 +
*Press -keylist
 +
: Lists all available keys
 +
*Press Ctrl+Alt+X
 +
: Presses and then releases Ctrl+Alt+X
 +
*Press -hold Shift
 +
: Presses and holds Shift
 +
*Press -release Shift
 +
: Releases shift, used after a Press -hold
  
 
== See Also ==
 
== See Also ==

Revision as of 20:47, 23 April 2005

Syntax

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

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

Description

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.

Key names are given by your keyboard driver. To see the full list of keys for your current input locale, use Press -keylist.

Examples

  • Press -keylist
Lists all available keys
  • Press Ctrl+Alt+X
Presses and then releases Ctrl+Alt+X
  • Press -hold Shift
Presses and holds Shift
  • Press -release Shift
Releases shift, used after a Press -hold

See Also