This looks suspect:
Set %JumpLocationMax 2
Set %JumpLocationX1 ( ( #CLIXRES / 2 ) - 40 )
Set %JumpLocationY1 ( #CLIYRES / 2 )
Set %JumpLocationX2 ( ( #CLIXRES / 2 ) + 60 )
Set %JumpLocationY2 ( ( #CLIYRES / 2 ) + 60 )
Just glancing at this shouldn't it be +60 and nothing instead of +60 and +60? One of those should be nothing I suspect.
*Actually, if you go 40 one direction, shouldn't you go 40 the other? As stated, just looking at it and not actually tested.