ok so if I make a batch file
save as d:\ip.bat
if i type in mirc:
//run d:\ip $chr(124) clip
then ip.bat instantly pops up and copies to the clipboard then closes almost instantly.
but when i want to output to @win
so i use the code:
alias ipconfig {
clipboard
window @ipconfig
run d:\ip $chr(124) clip
while (!%a) {
var %a = $cb(0)
}
var %b = 1
while (%b <= %a) {
echo @ipconfig $iif($cb(%b),$v1,-)
inc %b
}
}
It works exactly as expected except there is a very long pause (about 15 secs) while the cmd window is open as if the while loop is freezing it
It is my understanding that while loops shouldn't freeze outside programs althow i could be wrong.....