macro module should work if u put in "/spawn" in macro section it should run the command when u press the hotkey and remove the delay option because it's for commands only not hotbar switching.