Hmm, just a thought but could you use the /resetidle N command?
from mirc.hlp:
/resetidle [seconds]
This resets the $idle identifer to zero or to the number of seconds you specify.
If you dont specify nothing it resets your idle to zero
if you use eg. /resetidle 37 then it sets your idle to 37secs