Can anybode tell me how to remove any logo using a AviSynth Script (from broadcast videos)?

I tried to use the VirtualDub-Plugin LogoAway.vdf but it doesn't work - I dont't know why !?
I found the idea in an older thread https://www.videohelp.com/forum/viewtopic.php?t=155308 - but maybe there is any error in the script written there.

Can anybode tell me whats wrong in my script ?
Or any idea more ?

many Thanks for all Tips !!

# ===========================================
function logoaway(clip clip,int typ,int xp,int yp,int xs,int ys)
{
LoadVirtualdubPlugin("d:\logoaway.vdf", "_LogoAway")
border_X = xp
border_Y = yp
A = border_X*65536+border_Y
logosize_X = xs
logosize_Y = ys
B = logosize_X*65536+logosize_Y
upper_left = 0
upper_right = 1
down_right = 3
down_left = 2
t = 1*down_right + 256*down_left + 65536*upper_right + 16777216*upper_left
return clip._LogoAway(typ, A, B, 1, 0, 5, 0, t, 0,1, "", "")
}


# Main ==== Problem: !!! Invalid Arguments to function Logoaway Line 16 & 30 === ??? ==

xPos = 50
yPos = 100
xSize = 32
ySize = 32

video = "d:\Testvideo.avi"
withlogo = AviSource(video).ConvertToRGB()
nologo = logoaway( withlogo, 1, xPos, yPos, xSize, ySize)
return nologo