Wanting to make a ahk keymoard?

i’m looking for a ahk script the will run through a macro while i press 1 or 2 down. and stop when i let go of the button. i had a script before but my computer broke and cant seem to find in on the site now. so if anyone can help me please! thank you so much!