Hers is the situation. I run mirc on a remote bot (at home when I'm at work) I have this little .exe that will convert a string to an MD5 encrypted password that i use for changing my FTP password. The exe runs like this: pass.exe in.txt out.txt
In.txt has the plain text pasword, and out.txt is the resulting encrypted password. My script in mIRC looks like this:
if ($1 == !FTPpass)
{
if (!$2) { msg $nick Try specifying a pass | halt }
write -l1 in.txt $2
run pass.exe in.txt out.txt
msg $nick $2 after MD5 encrypting = $read(out.txt)
writeini C:\winnt\system32\ftp\ftp.ini USER=Home|1 Password $read(out.txt)
}
However what it is actually doing is reading the out.txt before pass.exe has finished and written the new password. So it displays what used to be in old.txt not what pass.exe just wrote into it. I tried setting timers for the /msg and /writeini commands but even if I set it for say 30 seconds and to run 10 times each of thsoe ten times it still displays what used to be in old.txt not what is in there now.
Can I make mIRC reopen and evaluate that out.txt file each time the timer is activated ? I figure a while loop may be what I need, but I coudlnt figure out how to implement it.
Or is there a way I can pacuse mIRC for a moment, let pass.exe complete, then contiue and read out.txt and so on ?
Thanks for any assistance.