Timer for button

Is there a way to automatically click a button every certain period of time ? I tried adding timer but is not working.

A problem with buttons is that they generate two “events” instead of just one, as usually desired. (OnMouseDown and OnMouseUp)

You might want to look at this thread:

There can be problems when you have two or more timers in a single GH file.

1 Like

Thank you !

In case it isn’t obvious, the output of those Counter components will have the same effect as a button on downstream components, except that you get only one event on each interval instead of two.

counter_2020Mar4a.gh (7.9 KB)

1 Like

You can stick a not gate at the end of course to hit ‘true’ when the counter returns to zero.

Counter.gh (3.8 KB)


Thanks a lot!

1 Like