cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. ET on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
chemistjones
Level II

Activate a button box in JSL - Simulate button press

Is it possible to activate a button box that was created by a previously running script? Essentially, I'm looking to simulate a button press.

Example:

[Script A creates object buttonbox(1)]

[Script B contains a line similar to one below, to simulate pressing the buttonbox]

buttonbox(1) << run script;

Then, script B would be run any time after script A and would call the script from buttonbox(1).


1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Activate a button box in JSL - Simulate button press

The Click function allows you to do that.

names default to here(1);

new window("xxx",rr=button box("test",show("pressed")));

rr<<click;

Jim

View solution in original post

4 REPLIES 4
txnelson
Super User

Re: Activate a button box in JSL - Simulate button press

The Click function allows you to do that.

names default to here(1);

new window("xxx",rr=button box("test",show("pressed")));

rr<<click;

Jim
ram
ram
Level IV

Re: Activate a button box in JSL - Simulate button press

Hi Jim,

Is this aproach can also work for the error windows generated e.g while formula errors. in the attached picture i want to click on the "Ignore Errors"button using JSL?

Thanks

Ram

txnelson
Super User

Re: Activate a button box in JSL - Simulate button press

This error window is a modal window, which means that all processing will stop except for the window action, until the window is closed.  Therefore, you will not be able to issue a "Click" function

Jim
ram
ram
Level IV

Re: Activate a button box in JSL - Simulate button press

Thank you Jim for explaining.

Recommended Articles