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.
Thanks in advance,
Bob Irving Middle School Technology Facilitator Lancaster Country Day School Lancaster, PA Blog: www.e-lcds.org/wordpress/ "It is not necessary to change. Survival is not mandatory." W. Edward Deming
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. karl
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 -
Bert Freudenberg wrote:
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 -
I don't see that choice in the menu Karl
Am 04.12.2005 um 09:48 schrieb karl:
Bert Freudenberg wrote:
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 -
I don't see that choice in the menu
It's in the "more..." sub-menu.
- Bert -
On December 4, 2005 06:34, Bert Freudenberg wrote:
Am 04.12.2005 um 09:48 schrieb karl:
Bert Freudenberg wrote:
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 -
I don't see that choice in the menu
It's in the "more..." sub-menu.
Just a note, I do see "more==>keyStroke" in the Tweak version, but not in (3.8 or Squeakland05) version, perhaps it is new in Tweak(?)
Thanks Milan
- Bert -
Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
Am 05.12.2005 um 07:58 schrieb Milan Zimmermann:
On December 4, 2005 06:34, Bert Freudenberg wrote:
Am 04.12.2005 um 09:48 schrieb karl:
Bert Freudenberg wrote:
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.
I don't see that choice in the menu
It's in the "more..." sub-menu.
Just a note, I do see "more==>keyStroke" in the Tweak version, but not in (3.8 or Squeakland05) version, perhaps it is new in Tweak(?)
It's there, but only for scripts of the World itself.
- Bert -
Bert Freudenberg wrote:
Am 05.12.2005 um 07:58 schrieb Milan Zimmermann:
On December 4, 2005 06:34, Bert Freudenberg wrote:
Am 04.12.2005 um 09:48 schrieb karl:
Bert Freudenberg wrote:
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.
I don't see that choice in the menu
It's in the "more..." sub-menu.
Just a note, I do see "more==>keyStroke" in the Tweak version, but not in (3.8 or Squeakland05) version, perhaps it is new in Tweak(?)
It's there, but only for scripts of the World itself.
That explains it :-) Thanks, Karl
- Bert -
Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
On December 5, 2005 05:07, Bert Freudenberg wrote:
Am 05.12.2005 um 07:58 schrieb Milan Zimmermann:
On December 4, 2005 06:34, Bert Freudenberg wrote:
Am 04.12.2005 um 09:48 schrieb karl:
Bert Freudenberg wrote:
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.
I don't see that choice in the menu
It's in the "more..." sub-menu.
Just a note, I do see "more==>keyStroke" in the Tweak version, but not in (3.8 or Squeakland05) version, perhaps it is new in Tweak(?)
It's there, but only for scripts of the World itself.
Ah, yes, I see it now. from just a random look at some objects, it is actually consistent betwen Tweak and 3.8, for example:
keyStroke available under more... World Holder
keyStroke not available under more... Ellipse
(I thought they were all the same)
Thanks Milan
- Bert -
Squeakland mailing list Squeakland@squeakland.org http://squeakland.org/mailman/listinfo/squeakland
On Dec 4, 2005, at 12:48 AM, karl wrote:
Bert Freudenberg wrote:
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 -
I don't see that choice in the menu
That's in the "more..." menu.
Note that this lets you trigger a script on a key *stroke* -- that is, a press (and maybe release) of a key that is turned into a (possibly modified) character.
It doesn't let you sense press/release separately, or key up events. But it was the simplest thing that could possibly work, and no one has come up with anything much fancier that I know of.
I did make it so you could sense some special keys (grab a viewer for "World's lastKeystroke"):
"A" (shift+a) "a" "<Ctrl-a>" "<Ctrl-Shift-a>" "<Opt-å>" (option or alt key + a) (probably "<Opt-a>" on a windows machine) "<Ctrl-Opt-a>"
As well as some other keys: <right> <left> <up> <down> <pageUp> <pageDown> <home> <end>
etc.
Note that if a text field or morph has the keyboard focus, it'll eat the keystroke and the World won't see it.
Ned
Ned Konz wrote:
On Dec 4, 2005, at 12:48 AM, karl wrote:
Bert Freudenberg wrote:
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 -
I don't see that choice in the menu
That's in the "more..." menu.
Hi, Ned :-) Seems like Change set: '6458-0367 specificEvents-nk' removed that menu option. When I revert ScriptInstantination>>presentScriptStatusPopUp one version I get it back. Karl
Note that this lets you trigger a script on a key *stroke* -- that is, a press (and maybe release) of a key that is turned into a (possibly modified) character.
It doesn't let you sense press/release separately, or key up events. But it was the simplest thing that could possibly work, and no one has come up with anything much fancier that I know of.
I did make it so you could sense some special keys (grab a viewer for "World's lastKeystroke"):
"A" (shift+a) "a" "<Ctrl-a>" "<Ctrl-Shift-a>" "<Opt-å>" (option or alt key + a) (probably "<Opt-a>" on a windows machine) "<Ctrl-Opt-a>"
As well as some other keys:
<right> <left> <up> <down> <pageUp> <pageDown> <home> <end>
etc.
Note that if a text field or morph has the keyboard focus, it'll eat the keystroke and the World won't see it.
Ned
On Fri, 2 Dec 2005, Bob Irving wrote:
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.
Hi Bob,
Maybe a useful hint concerning your question:
If you get a viewer of the whole 'world' (right-mouse-click somewhere on the background gives you the halos), the section 'input' contains a tile "world's last keystroke" which catches any keystroke-event. Maybe you could use this within a test-block.
Markus ----------------------------------------------- Markus Schlager m.slg(at)gmx.de
squeakland@lists.squeakfoundation.org