could someone make a hotkey that if monk attacks me, use knife, but if demon skeleton attacks me, use other weapon, for example blade of corruption?

Thanks!