Find the word definition

Wiktionary
throw one's cap over the windmill

vb. (context idiomatic English) To act in a crazed manner.