CHAPTER 19: Instant Keyboard Response by Ron Peters

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

CHAPTER 19Instant Keyboard Response

There are times you may want to enter some input or perform an action without having to use the Enter key. A while back, I encountered this problem when I needed to view the numerical output of ballistic equations. I wanted to be able to increment or decrement an input value and recalculate the results by pressing just one key. I came up with a script that would do this, and display both the changed input value and the new results calculated from it. The example script here, while interesting, is just a simple demonstration of how to process instant response.

My script accomplished its task quite well. The following script is a simplified version that calculates and displays the values for a projectile's trajectory. ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required