Difference between revisions of "RunClickScript Command"

From GeoGebra Manual
Jump to: navigation, search
m
m (Text replace - ";(.*)\[(.*)\]" to ";$1($2)")
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}}
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}}
;RunClickScript[ <Object> ]
+
;RunClickScript( <Object> )
 
: Runs the click script associated with the Object (if it has one).
 
: Runs the click script associated with the Object (if it has one).
 
:{{Example|1=Let ''A'' and ''B'' be points.  The ''OnClick'' script for ''B'' is <code>SetValue[B,(1,1)]</code>. Setting the ''OnClick'' script of ''A'' as <code>RunClickScript[B]</code>, moves point ''B'' to (1,1) when point ''A'' is clicked.}}  
 
:{{Example|1=Let ''A'' and ''B'' be points.  The ''OnClick'' script for ''B'' is <code>SetValue[B,(1,1)]</code>. Setting the ''OnClick'' script of ''A'' as <code>RunClickScript[B]</code>, moves point ''B'' to (1,1) when point ''A'' is clicked.}}  
 
{{Note|1=See also [[RunUpdateScript Command|RunUpdateScript]] command.}}
 
{{Note|1=See also [[RunUpdateScript Command|RunUpdateScript]] command.}}

Revision as of 17:15, 7 October 2017


RunClickScript( <Object> )
Runs the click script associated with the Object (if it has one).
Example: Let A and B be points. The OnClick script for B is SetValue[B,(1,1)]. Setting the OnClick script of A as RunClickScript[B], moves point B to (1,1) when point A is clicked.
Note: See also RunUpdateScript command.
© 2024 International GeoGebra Institute