did you try what i suggested in the other thread of this message
https://forums.mirc.com/showthreaded.php?Cat=&Board=scriptsandpopups&Number=71706