Advertisement
westor

Check_Wine identifier for coldforged v1.1

Oct 4th, 2018
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 0.78 KB | None | 0 0
  1. alias check_wine {
  2.   if (!$isid) { return }
  3.  
  4.   var %1 = CheckOS_1
  5.   var %2 = CheckOS_2
  6.   var %3 = CheckOS_3
  7.   var %4 = CheckOS_4
  8.  
  9.   .comopen %1 MSScriptControl.ScriptControl
  10.   if (!$com(%1)) || ($comerr) { return 1 }
  11.  
  12.   .comopen %2 WScript.Shell
  13.   if (!$com(%2)) || ($comerr) { return 2 }
  14.  
  15.   .comopen %3 MSXML2.SERVERXMLHTTP.6.0
  16.   if (!$com(%3)) || ($comerr) { return 3 }
  17.  
  18.   .comopen %4 Adodb.Stream
  19.   if (!$com(%4)) || ($comerr) { return 4 }
  20.  
  21.   if ($com(%1)) { .comclose $v1 }
  22.   if ($com(%2)) { .comclose $v1 }
  23.   if ($com(%3)) { .comclose $v1 }
  24.   if ($com(%4)) { .comclose $v1 }
  25.  
  26.   return 0
  27.  
  28.   :error
  29.   reseterror
  30.  
  31.   if ($com(%1)) { .comclose $v1 }
  32.   if ($com(%2)) { .comclose $v1 }
  33.   if ($com(%3)) { .comclose $v1 }
  34.   if ($com(%4)) { .comclose $v1 }
  35.  
  36.   return 5
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement