Playing with ps4 controller

so i play wow with a ps4 controller I’m looking for a way to get something like ahk to work and use my controller buttons for the macros

You should Probabely have a look at ConsolePort. To use this with GSE, you will need to turn on Virtual Button support in GSE’s options.