You'll need the Logitech profiler to do this. You can then map the buttons to the HAT. I used to have one of the start / select (or whatever) buttons mapped to run in a sequence.. push once for F9, twice for F10, thrice for F11 etc etc.
Check the logitech site for the free profiler download