Magnetically and thermally induced switching processes in hard magnets