how do i make a touch bar autoclicker function?

i would like to make it so when i press a trigger on my touch bar, it starts to click my left mouse click at a fast speed