OK, I'll save you time. Here's the script. It monitors the mouse every second. If it's moved, the F1 key is pressed. You can change that, of course. You can compile it with the tool provided with Autohotkey and run the exe before MaLa so that it stays resident.
#Persistent
#NoTrayIcon
SetTimer, monitorcursor, 1000
monitorcursor:
IfWinActive MaLa ahk_class TfrmMain
if !chk_mousepos()
send, {F1}
return
chk_mousepos(input=false)
{
static mousex, mousey
if !mousex OR !mousey
MouseGetPos, mousex, mousey
MouseGetPos, mousex2, mousey2
if (mousex = mousex2) AND (mousey = mousey2)
return true
else
{
mousex := mousex2
mousey := mousey2
return false
}
}