Zerene Stacker

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
stacker:docs:stackshot:robot [2011/09/04 04:42]
rjlittlefield
stacker:docs:stackshot:robot [2019/05/19 23:38]
rjlittlefield update external link to KeyEvent class
Line 1: Line 1:
 ====== StackShot "​Robot"​ for Controlling External Programs ====== ====== StackShot "​Robot"​ for Controlling External Programs ======
  
-As described on the [[stacker:​docs:​stackshot|parent page]], Zerene Stacker'​s controller for the StackShot rail allows an external program to be executed whenever a shutter operation occurs. ​ The example there used Apple'​s /​usr/​bin/​osascript program to launch FlexColor (if necessary) and then send it a simulated keystroke.+As described on the __[[stacker:​docs:​stackshot|parent page]]__, Zerene Stacker'​s controller for the StackShot rail allows an external program to be executed whenever a shutter operation occurs. ​ The example there used Apple'​s /​usr/​bin/​osascript program to launch FlexColor (if necessary) and then send it a simulated keystroke.
  
 Zerene Stacker can also be made to simulate keystrokes and mouse actions by itself, even on Windows systems. ​ This is useful for driving third party applications that are not prepared to be launched or controlled by command line actions. Zerene Stacker can also be made to simulate keystrokes and mouse actions by itself, even on Windows systems. ​ This is useful for driving third party applications that are not prepared to be launched or controlled by command line actions.
Line 22: Line 22:
   ​   ​
  
-Values for other keys are given in the list of Java constants for the KeyEvent class, [[http://download.oracle.com/​javase/​1.4.2/​docs/​api/​constant-values.html#​java.awt.event.KeyEvent.KEY_FIRST|HERE]].+Values for other keys are given in the list of Java constants for the KeyEvent class, [[https://docs.oracle.com/​javase/​7/​docs/​api/​constant-values.html#​java.awt.event.KeyEvent.KEY_FIRST|HERE]].
  
 Supported events are: Supported events are:
Line 36: Line 36:
  
 **Caution:​** ​ Be sure to use press and release events in matched pairs. ​ If you tell the robot to press a key but not to release it, then the computer will continue to act as if the key is held down, even outside Zerene Stacker. ​ The resulting behavior can be quite confusing, particularly if the key that's being "held down" is a modifier like Shift or Ctrl. **Caution:​** ​ Be sure to use press and release events in matched pairs. ​ If you tell the robot to press a key but not to release it, then the computer will continue to act as if the key is held down, even outside Zerene Stacker. ​ The resulting behavior can be quite confusing, particularly if the key that's being "held down" is a modifier like Shift or Ctrl.
 +
 +**Note:** The simplest way to determine screen coordinates is use your computer'​s screen capture facility to grab an image of the entire screen, then pull that image into Photoshop or some equivalent program. ​ Pixel coordinates reported by Photoshop, with 0,0 at the upper left of the screen, are the same coordinates needed by Zerene Stacker'​s robot facility.
stacker/docs/stackshot/robot.txt ยท Last modified: 2019/05/19 23:38 by rjlittlefield
Copyright 2009-2024, Zerene Systems LLC, all rights reserved.