Execute WHEN <button> CLICK from blocks

Hello everyone,
is it possible to execute the WHEN ON CLICK event inside a block? That is: is it possible to simulate the pressing of a button in a program?
Thanks

Yes of course. Just put the blocks you would use in your button click event in the event/procedure of your choice.

Hi,
yes, of course, but this way I would have to duplicate the blocks, I would like to avoid this

Put the blocks in a procedure, then just use the procedure block

so i guess this is the only way...
thank you!

Duplicating a call to a common procedure is no sin.

Yes! :slight_smile: