One way, though not the best would have your VBS/JS write to a file everything you want to send via sendmessage within your mIRC's directory. Then within mIRC run a timer to check that file every so often. If it contains info, process it, delete the lines.
Something like the following, but this is just an example and hasn't been tested:
In your mIRC
On *:Start:{
.timerCheckFile -oi 0 60 CheckFile
}
alias CheckFile {
if ($isfile(Thisfile.txt)) {
while ($read(ThisFile.txt,np,1)) {
echo -s :: Hey, I just read this line: $v1
write -dl1 ThisFile.txt
}
}
}
Then in your vb script
set FSO = CreateObject("Scripting.FileSystemObject")
if (FSO.FileExists("path to mirc\ThisFile.txt")) then
mFile = FSO.OpenTextFile("path to mIRC\ThisFile.txt")
else
mFile = FSO.CreateTextFile("path to mIRC\ThisFile.txt")
end if
mFile.Writeline("Data to write to TheFile.txt")
mFile.Close