[Squeakland] fire a script with a keypress

Bert Freudenberg bert at impara.de
Sat Dec 3 15:55:05 PST 2005


Am 03.12.2005 um 18:26 schrieb karl:

> Bob Irving skrev:
>
>> Can anyone tell me how to fire a script with a keypress in eToys?   
>> For instance, how could you use the space bar to pause?  Just an  
>> example.
>
> Here is a workaround:
> The world / background captures keypresses. Bring up a viewer on  
> the world and select the
> input category.
> Make a script like the the one in the attachment picture.

Better yet, do not set the script to ticking, but to be activated on  
keystroke.

- Bert -



More information about the Squeakland mailing list