Seems you are talking about the default MTA Chatbox, which is already able to execute commands.
Obivously this wont work for a custom input since its output via outputChatBox.
You could check for "/" as first character and then cancel it, so nothing happens at all.
Why people have to be able to execute commands in the Global Chat anyway?
Also, use getTickCount instead of Timers.