mIRC Home    About    Download    Register    News    Help

Active Threads | Unanswered Past 24 hours | Past 48 hours | Past Week | Past Month | Past Year
Scripts & Popups Jump to new posts
Re: My color schemes eahm 14/08/19 07:34 AM
Modified few things, fixed few typos, not sure I really remember what I added or changed really but I see there are more now so ...posting it.

https://pastebin.com/ewTZbWYh
32 4,845 Read More
Bug Reports Jump to new posts
invalid group-end gets sent to server FroggieDaFrog 14/08/19 02:45 AM
the following sends "grouptest invalid" to the server

win 10
mirc v7.57

Steps to reproduce:
- create a remotes file containing the script below
- in an editbox type /grouptest

Code
#grouptest on
alias grouptest {
  echo -a echoed
}
#grouptest invalid

3 132 Read More
Bug Reports Jump to new posts
Re: 7.57 //exit -nr bug Wims 13/08/19 07:57 PM
When it was not working, it was also closing, but not rerunning itself, which seems to be only a /run call.
Just tested again and it works with the same install, files and folders in the mircdir.
15 457 Read More
Bug Reports Jump to new posts
Re: 7.57 //exit -nr bug Tiago 13/08/19 07:04 PM
I use the latest beta version of mIRC 7.57.669 and the /exit -nr command does not work. mIRC shuts down but then does not restart. But I've also tried removing my entire script from the C:\mIRC folder and putting only pure mIRC, and then the /exit -nr command already works and mIRC shuts down and restarts. But I have nothing in my script that prevents mIRC from restarting.
15 457 Read More
Scripts & Popups Jump to new posts
getJFM - feedback? kap 13/08/19 06:54 PM
As an exercise I wrote this, but I'd like feedback!

Code
alias getJFM {

  ; sha-512 of JSON For mIRC.mrc v1.0.4000
  var %sha512 b29de8c964b002d089fa030a9a5357e3c737f17cd16309c0fa82142120a590db2223d4703cafe97f37b65de170bb4d9dbf7bb508f4052a47a2127fc74c10a6d6

  ; check if JSON For mIRC is loaded
  if ($isalias(JSONVersion)) {
    var %file $isalias(JSONVersion).fname
    if ($sha512(%file,2) != %sha512) .unload -rs $qt(%file) | return $getJFM
    else return 0
  }
  elseif ($1 isnum) {
    if ($urlget($1).state == fail) { echo -a Downloading failed. Are you connected to the internet? | halt }
    elseif ($zip($urlget($1).target,eo,scripts)) { 
      var %dir $+(scripts\,JSON-For-Mirc-1.0.4000)
      var %file $qt($findfile(%dir,JSON For mIRC.mrc,1))
      if (($sha512(%file,2) == %sha512) && ($input(Would you like to load $nopath(%file) $+ ?,yq))) .load -rs %file
      .remove $urlget($1).target
    }
    else { echo -a Something went wrong unzipping $urlget($1).target }
  }
  else { 
    var %url https://github.com/SReject/JSON-For-Mirc/archive/v1.0.4000.zip
    var %target JFM.zip
    return $urlget(%url,gf,%target,getJFM)
  }
}
3 88 Read More
Feature Suggestions Jump to new posts
Re: 64-bit version CaptainSmoke 13/08/19 02:34 PM
I have been using mIRC in Linux via wine. This will become more difficult in the future because popular Linux distros like Ubuntu and Redhat are starting to phase out support for 32-bit architectures and binaries. I would like to continue using mIRC without having to resort to making my user environment too customized.

Are there any plans to make mIRC available as a 64-bit binary?
5 9,741 Read More
Scripts & Popups Jump to new posts
Re: regsubex- color the digits kap 12/08/19 06:34 PM
Thanks! You're right, it's working now!
2 55 Read More
Scripts & Popups Jump to new posts
Re: regsubex- color the digits Wims 12/08/19 05:12 PM
Looks like mIRC is the one doing it wrong

Code
//echo -a $regsubex(a1b,(\d+), this one is fine: \1 - still fine: c\1d - bug??: $chr(3) $chr(3) 07\1)
- the bug doesn't occur because the color sequence is ended

Code
//echo -a $regsubex(a1b,(\d+), this one is fine: \1 - still fine: c\1d - bug??: $chr(3) 07\1)
- the bug shows up, $+ not even required
scratch that, that was huge non sense!

The markers (\1 here) have to appear literaly in the subtext parameter of $regsubex.
2 55 Read More
Scripts & Popups Jump to new posts
regsubex- color the digits kap 12/08/19 04:44 PM
Code
alias test {
  var %text {"coord":{"lon":3.57,"lat":51.46},"weather":[{"id":310,"main":"Drizzle","description":"light intensity drizzle rain","icon":"09d"},{"id":521,"main":"Rain","description":"shower rain","icon":"09d"},{"id":200,"main":"Thunderstorm","description":"thunderstorm with light rain","icon":"11d"}],"base":"stations","main":{"temp":16.66,"pressure":1014,"humidity":72,"temp_min":15,"temp_max":18.89},"visibility":10000,"wind":{"speed":5.7,"deg":270},"clouds":{"all":100},"dt":1565618207,"sys":{"type":1,"id":1553,"message":0.0087,"country":"NL","sunrise":1565583963,"sunset":1565637345},"timezone":7200,"id":2745392,"name":"Vlissingen","cod":200}
  var %pattern /(\d+)/g
  var %subtext $chr(3) $+ 07\1 $+ $chr(15)
  echo -a $regsubex(%text,%pattern,%subtext)
}


[Linked Image from i.imgur.com]

Running this on a vanilla version 7.57...

What am I doing wrong?

edit: https://regex101.com/r/bLJWT4/1
2 55 Read More
Page 2 of 2 1 2