Macro option on the mouse

Bought myself a new mouse ( utech venus ) , however, I have trouble putting my macro in it.
I use the 0 key as repeat until pressed again macro, it casts for about 7 seconds and stops again.

Anyone here had a similar problem that they fixed?
I tried both options (run when and run until pressed)