Subscribe Bookmark RSS Feed

Activate a button box in JSL - Simulate button press

chemistjones

Community Trekker

Joined:

Jun 22, 2016

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
Solution

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
1 REPLY
Solution

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