# On press and hold button?

**URL:** <https://forum.kirupa.com/t/on-press-and-hold-button/124258>\
**Category:** Uncategorized\
**Created:** [October 1, 2004, 1:33pm UTC](https://forum.kirupa.com/t/on-press-and-hold-button/124258 "2004-10-01T13:33:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VoS](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@VoS](https://forum.kirupa.com/u/VoS)\
**Post date:** [October 1, 2004, 1:33pm UTC](https://forum.kirupa.com/t/on-press-and-hold-button/124258/1 "2004-10-01T13:33:33Z")

</div>

hey!  
id like help with creating a button with the following functionality…  
if u click it, it acts like normal… and runs some script or sets a value or whatever… but how do i do it so that if the mouse button is held down while on the button it would after 2 seconds keep runing whatever its told to do untill mouse button is released…

im making a volume controll button, and want it to by 1 click jump up 1 % in volume, but as this gets tedious to press , i want it to go up by 1 really fast if its held down … thanks =)
