Advertisement
FichteFoll

mIRC - kSub

Jun 15th, 2012
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.91 KB | None | 0 0
  1. #ksub on
  2. alias kSub {
  3.   var %kSubPath "c:\Program Files (x86)\kSub\kSub.r45.exe"
  4.  
  5.   if (!$com(WSH)) .comopen WSH WScript.Shell
  6.   if (!$comerr) {
  7.     var %Process $com(WSH,ExpandEnvironmentStrings,1,bstr*,$+(%,temp,%)), %tempdir $com(WSH).result
  8.     var %kSubTxt " $+ %tempdir $+ \ksub_mirc_msg.txt"
  9.     if (!$comerr) $com(WSH, Run, 1, bstr, %kSubPath /INFO %kSubTxt, i1, 3, bool, True)
  10.  
  11.  
  12.     if (!$comerr) describe # : $read(%ksubtxt)
  13.   }
  14.   if ($com(WSH)) .comclose WSH
  15. }
  16.  
  17. alias -l GetTempDir {
  18.   if (!$com(tempdir)) .comopen tempdir WScript.Shell
  19.   if (!$comerr) var %Process $com(tempdir,ExpandEnvironmentStrings,1,bstr*,$+(%,temp,%)), %result $com(tempdir).result
  20.   if ($com(tempdir)) .comclose tempdir
  21.   return %result
  22. }
  23.  
  24.  
  25. alias okSub {
  26.   var %ksubtxt " $+ $gettempdir $+ \ksub_mirc_msg.txt"
  27.   run "c:\Program Files\kSub\kSub.r39.exe" /INFO %ksubtxt
  28.   describe # $read(%ksubtxt)
  29. }
  30. #ksub end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement