whenever i change the trigger on the script and rehash, the old trigger is still active and so is the new trigger, how can i fix this so that it wont answer on the old trigger after rehash and will only answer to the new one ?
For it to work with a .rehash, you'd have to include some code to unbind the old bindings. Syntax is quite similar to bind: unbind <type> <flags> <keyword/mask> <proc-name>
One option might be to use .restart instead, as this pretty much wipes the whole tcl environment, including settings, bindings, etc.
yeah but i dont want to .restart all the time i do testing.. like adding/removing codes on the script since i dont know tcl i pretty much just test i cant have it right on the first try.