I'm using some script for my Indesign document. But i want to stop script when mouse cursor not move. When script run mouse moving in text (its normal). When the text it finish doesn't move any more, but script still working for loop finish. can i stop it when cursor not move. Here is sample of my script
Loop 100
{
Send ^{Numpad3}
Send ^{Down}
Send ^{Numpad2}
Send ^{Down}
}