Go check out AutoIt or Auto Hot Key. They're both scripting languages that are extremely simple to learn and use if you just spend a little time reading the help documents
Here's a macro script in AutoIt
Code:
;==> Space will be the key and Macro is the name of the function
HotKeySet("{Space}", "myMacro")
;==> End will be the key and closeScript is the name of the function
HotKeySet("{End}", "closeScript")
;==> Just an infinite loop that prevents the script from closing
While 1
Sleep(250)
Wend
Func myMacro()
Send("{F1}")
Sleep(250)
Send("{F2}")
Sleep(250)
Send("{F3}")
Sleep(250)
;==> This would be where you switch weapon, idk how you do it in the game
Sleep(250)
Send("{F4}")
Sleep(250)
Send("{F5}")
ToolTip("Combo Complete!")
Sleep(500)
ToolTip("")
EndFunc
Func closeScript()
Exit
EndFunc