No, you can't easily make a script to do "click this button when this light turns green". But you CAN make a script triggered by the data that turns the light green to create the same action clicking the button does.
in reply to RE: RE: GUIs and CLIs
in thread The sad state of Perl documentation
The point, just to be clear, is that a GUI is not meant to be a machine interface, it's meant to be a human interface. If you're human, use the human interface; when the light turns green, click the button. A script is a machine. Use a machine interface for it.
- email Ozymandias