can you make a hold down trigger

can you make it where if you tap a button it does something but if you hold it down it does something completely different?

Use timers and switches to do different things over time, reset them to restart the process.

can you take a snapshot?