Button pressed using nifty gui

Hey,

Is there any way to call a function continuously while clicking in a GUI button?
I need something like the < onClick= > but with the button pressed.

Thanks

Answered in here.