mIRC Home    About    Download    Register    News    Help

Print Thread
#112391 23/02/05 03:21 PM
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
hey
for some reason $v1 and $v2 stopped working
i know for sure that it works because other people had tested it with the same version as me (6.16).
anyone have any idea why it wont work

thanks

#112392 23/02/05 04:19 PM
Joined: Feb 2005
Posts: 74
S
Babel fish
Offline
Babel fish
S
Joined: Feb 2005
Posts: 74
I have no ideas!


[color:red]m[color:blue]IRC[color:green] for EvEr

#112393 23/02/05 04:19 PM
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
lol thanks for the great help wink

#112394 23/02/05 04:36 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Maybe you could show us the code to see if the same happens to us. Also, try to see if /Remote on will shed some light on it.

Other than that. I, like SkyD have no ideas.

#112395 23/02/05 05:24 PM
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
//if (he*re iswm hellothere) echo -a $v2

#112396 23/02/05 05:32 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Did you make sure that somehow you aren't testing on an older version of mirc? Or that some leet script didn't overwrite your mirc.exe with its own?


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#112397 23/02/05 08:09 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Assuming //echo -a $version replies with 6.16 then try

//if (he*re iswm hellothere) echo -a $v2

then

//!if (he*re iswm hellothere) echo -a $v2


Last edited by DaveC; 23/02/05 08:11 PM.
#112398 23/02/05 09:25 PM
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
make sure if its in a group the group is on and likewise for the remotes i think everything else has pretty much been covered


The Kodokan will move you, one way or another.
#112399 23/02/05 10:17 PM
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
lol my bad it was version 6.14. I thought it was 6.16 >_<

ill try 6.16

thanks for all the help people
laugh

#112400 23/02/05 10:21 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
LOL! This should help in future, it's something I did a few weeks ago.. grin

Code:
menu channel {
  $iif($dialog(ver),$style(7)) mIRC Version Checker: { 
    dialog -dmo ver ver
  }
}

dialog ver {
  title "mIRC Version Checker by Andy"
  size -1 -1 163 72
  option dbu
  text "mIRC Version Checker, connects to the mIRC website and simply checks whether or not your mIRC needs to be updated.  If your mIRC needs an update it'll take you to the downloads page.", 1, 16 4 131 28, center
  edit "", 2, 30 38 94 10, read autohs
  button "Check for updates!", 3, 52 53 54 12
}

on 1:dialog:ver:sclick:3: {
  if ($did(ver,3).text == Check for updates!) { 
    ver 
  }
  elseif ($did(ver,3).text == Close!) { 
    dialog -x ver ver 
  }
}

alias ver { 
  .sockopen ver www.mirc.co.uk 80 
}

on *:sockopen:ver: { 
  .sockwrite -n $sockname GET /get.html HTTP/1.0
  .sockwrite -n $sockname Host: www.mirc.co.uk $+ $crlf $+ $crlf
}

alias -l html {
  var %x, %i = $regsub($1-,/(^[^&lt;]*&gt;|&lt;[^&gt;]*&gt;|&lt;[^&gt;]*$)/g,$null,%x), %x = $remove(%x,&amp;nbsp;)
  return %x
}


on 1:sockread:ver: {
  if ($sockerr &gt; 0) return
  :ver
  sockread %ver
  if ($sockbr == 0) { 
    return
  }
  if (&lt;FONT FACE="ms sans serif,sans-serif,geneva" SIZE="+2"&gt;&lt;B&gt;Download mIRC isin %ver) { 
    if ($gettok($html(%ver),3,32) == $version) &amp;&amp; ($dialog(ver)) { 
      did -a ver 2 Your mIRC is up to date. 
      did -ra ver 3 Close! 
    }
    elseif ($gettok($html(%ver),3,32) != $version) &amp;&amp; ($dialog(ver))  {
      did -a ver 2 Need update latest version is ( $+ $gettok($html(%ver),3,32)) $+ )
      run http://www.mIRC.co.uk/get.html
      did -ra ver 3 Close! 
    }
  }
  goto ver
}

Last edited by SladeKraven; 23/02/05 10:22 PM.
#112401 23/02/05 10:29 PM
Joined: Jun 2004
Posts: 291
W
Fjord artisan
OP Offline
Fjord artisan
W
Joined: Jun 2004
Posts: 291
ahh cool nice script laugh

thanks ^^

#112402 23/02/05 10:40 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Cheers dude. grin
Code:
      &amp;&amp;

You're welcome.

Last edited by SladeKraven; 23/02/05 11:06 PM.

Link Copied to Clipboard