Our World Statistics Day conversations have been a great reminder of how much statistics can inform our lives. Do you have an example of how statistics has made a difference in your life? Share your story with the Community!
Choose Language Hide Translation Bar
Highlighted

Auto Click Button

Hi Guys,

How I can auto click button "OK" after I choose variable , because after this dialog I have to run another chart and data

You can see in below pictures 

nguyendangkhoa_0-1584699393718.png

 

2 REPLIES 2
Highlighted
cwillden
Super User

Re: Auto Click Button

Can you elaborate on under which conditions you would want to automatically click "OK"?  In JSL, you can programatically click a button using something like "OK_button << click;"

 

If, for example, you want to programatically click OK once all required inputs are populated, you could write a function or expression like this:

check_inputs = Expr(
	If(
		N Items( y_inputs << get items ) > 0 & N Items( x_inputs << get items ) > 0
		 & N Items( parts_inputs << get items ) > 0,
		OK_button << click
	)
);

Then, within  the script for each of the input buttons, you could add check_inputs() at the end.

 

-- Cameron Willden
Highlighted

Re: Auto Click Button

Thank you so much, I will try it on my script

Article Labels

    There are no labels assigned to this post.