xlog(true)
You can play around with it a bit, like:
xlog(true)
wait(4000)
keyevent(0x0D)
Basically closes connection to the game, waits 4 seconds and simulates the enter button to reconnect to the game. Put it as a hotkey in Scripter.
Credits: @ozzix