I installed ahk yesterday so I don't know very much how to use it. I want to create a script that writes characters. exemple:

I press < and it automatically puts > at the end and sets the cursor between < and >

I searched for about 30 minutes how to do this, but none of the answers were working.