Toggle button send 0 -127 at each press

Hi,
I have a strange behavior in ableton, the active and solo button need to receive 0-127 for each position (on / off) so I need to use toggle button (push and tap are not working) and for each state always sending 0 - 127.
Probably using script something like this ?

get{this.on} send(0, 127)
get{this.off} send(0,127)

well found a simple solution it seems that's Ableton's active and solo buttons are set to respond to 64-127 values ?!