Clickon

clickon Simulates a mouse click on the current turtle, turning it on if it was off. This command will have an effect if the turtle is programmed to react to a mouse click. If used in a button's dialog box, it will change the current turtle. See clickoff and listen, and Synchronizing Processes in MicroWorlds Help Topics for advanced features. Note: If you used a list as input to talkto before running clickon, clickon will display an error message.

Example: Type an instruction in the turtle's dialog box. Then type in the Command Center:

clickon

Type the following instruction in a button's dialog box:

t2, clickon

Hatch the t2 turtle. Then type in the Command Center:

t1, fd 45

Click the button with the clickon instruction for t2. Running fd 45 in the Command Center now moves t2.