The first line of movemousetoelement tests whether xoffset and yoffset are non-trivial using
if {($xoffset ne "") && (yoffset ne "")} {
There's a missing dollar sign; the code should be
if {($xoffset ne "") && ($yoffset ne "")} {
Log in to post a comment.