<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Auto Click Button in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Auto-Click-Button/m-p/626306#M82508</link>
    <description>&lt;P&gt;How can you find out what the button is called?&lt;/P&gt;&lt;P&gt;I have a similar issue with the GO button needing to be automatically pressed.&lt;/P&gt;&lt;P&gt;I've guessed (presumably incorrectly) at what it might be called but those combos GO_button, &lt;EM&gt;etc.&lt;/EM&gt; did not work.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2023 14:13:59 GMT</pubDate>
    <dc:creator>TDF</dc:creator>
    <dc:date>2023-04-26T14:13:59Z</dc:date>
    <item>
      <title>Auto Click Button</title>
      <link>https://community.jmp.com/t5/Discussions/Auto-Click-Button/m-p/253370#M49733</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;How I can auto click button "OK" after I choose variable , because after this dialog I have to run another chart and data&lt;/P&gt;&lt;P&gt;You can see in below pictures&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nguyendangkhoa_0-1584699393718.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22430i26B4880F8235923D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nguyendangkhoa_0-1584699393718.png" alt="nguyendangkhoa_0-1584699393718.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 10:16:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Auto-Click-Button/m-p/253370#M49733</guid>
      <dc:creator>nguyendangkhoa</dc:creator>
      <dc:date>2020-03-20T10:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Click Button</title>
      <link>https://community.jmp.com/t5/Discussions/Auto-Click-Button/m-p/253417#M49747</link>
      <description>&lt;P&gt;Can you elaborate on under which conditions you would want to automatically click "OK"?&amp;nbsp; In JSL, you can programatically click a button using something like "OK_button &amp;lt;&amp;lt; click;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If, for example, you want to programatically click OK once all required inputs are populated, you could write a function or expression like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;check_inputs = Expr(
	If(
		N Items( y_inputs &amp;lt;&amp;lt; get items ) &amp;gt; 0 &amp;amp; N Items( x_inputs &amp;lt;&amp;lt; get items ) &amp;gt; 0
		 &amp;amp; N Items( parts_inputs &amp;lt;&amp;lt; get items ) &amp;gt; 0,
		OK_button &amp;lt;&amp;lt; click
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then, within&amp;nbsp; the script for each of the input buttons, you could add check_inputs() at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 14:43:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Auto-Click-Button/m-p/253417#M49747</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2020-03-20T14:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Click Button</title>
      <link>https://community.jmp.com/t5/Discussions/Auto-Click-Button/m-p/253701#M49814</link>
      <description>&lt;P&gt;Thank you so much, I will try it on my script&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 09:46:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Auto-Click-Button/m-p/253701#M49814</guid>
      <dc:creator>nguyendangkhoa</dc:creator>
      <dc:date>2020-03-23T09:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Click Button</title>
      <link>https://community.jmp.com/t5/Discussions/Auto-Click-Button/m-p/626306#M82508</link>
      <description>&lt;P&gt;How can you find out what the button is called?&lt;/P&gt;&lt;P&gt;I have a similar issue with the GO button needing to be automatically pressed.&lt;/P&gt;&lt;P&gt;I've guessed (presumably incorrectly) at what it might be called but those combos GO_button, &lt;EM&gt;etc.&lt;/EM&gt; did not work.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 14:13:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Auto-Click-Button/m-p/626306#M82508</guid>
      <dc:creator>TDF</dc:creator>
      <dc:date>2023-04-26T14:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: Auto Click Button</title>
      <link>https://community.jmp.com/t5/Discussions/Auto-Click-Button/m-p/626319#M82511</link>
      <description>&lt;P&gt;The previous example uses a variable GO-button in which a reference to an actual button was previously stored. See the example below for the basic approach to use.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

// example data set
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );

// example dialog
launch = dt &amp;lt;&amp;lt; Fit Model(
	Y( :weight ),
	Effects( :age, :sex, :height ),
	Personality( "Standard Least Squares" )
);

// find Run button and unwrap the list
button = (launch &amp;lt;&amp;lt; XPath( "//ButtonBox[text()='Run']" ))[1];

// click it!
button &amp;lt;&amp;lt; Click;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2023 14:43:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Auto-Click-Button/m-p/626319#M82511</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2023-04-26T14:43:37Z</dc:date>
    </item>
  </channel>
</rss>

