In a bizarre or eccentric manner.
Derived from throw one's cap over the windmill.
throw one's cap over the windmill
To act in a bizarre, eccentric or immoral manner.
cap it all off
To finish or complete something; to add a finishing touch.
cap in hand
In a humble and respectful manner.