Yeah I realized it wasn't spamming it automatically, and those were ms not seconds. I hope people don't spam this every second though. It really should only be done about once per minute on terrible connections.

Here's what i am using at this time, it uses PageDown key as the trigger but you can change that. It's better than the first proposed script cause you can easily get back to chatting in global after using it.