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: found nicks in numeric order 1 to end Simo Yesterday at 01:43 PM
anyway to achieve this or would that be not possible ?
2 108 Read More
Bug Reports Jump to new posts
Re: RPL_WHOISACTUALLY bug on InspIRCd Khaled Yesterday at 01:09 PM
Thanks for debug log. The change I made above has indeed resolved the issue.

That said, I notice that InspIRCd is using numeric 344 in the whois reply. This numeric is used as a MODE reply on some ircds, which is how mIRC has always parsed it. I have added a change so that numeric 344 is now treated as a whois reply if it contains a specific number of parameters/content. InspIRCd actually has two formats for numeric 344, one for InspIRCd 2.0 and one for InpsIRCd 3.0, so mIRC has to handle both.

These changes will be in the next beta.
5 98 Read More
Scripts & Popups Jump to new posts
Re: Trying to find specific text Epic 04/06/23 02:55 PM
Try use this script code that creates the identifier "$fsub" you need:
Code
alias fsub {
  if ($4 isnum && $3 isnum && $3 > 0 && $3 <= $pos($1,$2,0)) {
    if ($4 > 0) var %pos $calc($pos($1,$2,$3) + $len($2))
    if ($4 < 0) var %p $pos($1,$2,$3), %pos $calc(%p $4)
    if (%p && %pos < 1) return $left($1,$calc(%p -1))
    if (%pos <= $len($1)) return $mid($1,%pos,$abs($4))
  } | return 0
}

Syntax: $fsub(string, substring, index N, letters N)

Example: $fsub(helloworld, llo, 1, 5)

Test commands:
Code
//echo -a $fsub(AnApplicationCanBeUsedToFindContinuationOfData,CanBe,1,4)
//echo -a $fsub(AnApplicationCanBeUsedToFindContinuationOfData,tion,2,5)
//echo -a $fsub(AnApplicationCanBeUsedToFindContinuationOfData,tion,2,-5)

Returns:

  1. Used
  2. OfDat
  3. tinua



Note: In all other cases, when incorrect or invalid values are used in the parameters, the identifier will return the number "0".
1 67 Read More
Bug Reports Jump to new posts
mIRC beta Khaled 03/06/23 03:38 PM
The latest beta can be downloaded here and includes the following changes:

Quote
Beta v7.72.3512 changes:
1.Item 31, added.
2.Item 32, fixed https://forums.mirc.com/ubbthreads.php/topics/271642
3.Item 33, fixed https://forums.mirc.com/ubbthreads.php/topics/271674
4.Item 34, changed https://forums.mirc.com/ubbthreads.php/topics/271624
5.Item 2, fixed $isbit().
6.Item 35, fixed https://forums.mirc.com/ubbthreads.php/topics/271722
7.Item 36, fixed https://forums.mirc.com/ubbthreads.php/topics/271723
8.Item 37, fixed.

Beta v7.72.2435 changes:
1.Item 11, https://forums.mirc.com/ubbthreads.php/topics/271578
2.Item 30, fixed.

Beta v7.72.2408 changes:
1.Item 26, https://forums.mirc.com/ubbthreads.php/topics/271560
2.Item 15, https://forums.mirc.com/ubbthreads.php/topics/271569

Beta v7.72.2363 changes:
1.Item 24, https://forums.mirc.com/ubbthreads.php/topics/271559
2.Item 25, https://forums.mirc.com/ubbthreads.php/topics/271561
3.Item 26, https://forums.mirc.com/ubbthreads.php/topics/271562
4.Item 27, https://ircv3.net/specs/extensions/standard-replies
5.Item 28, https://forums.mirc.com/ubbthreads.php/topics/271361
6.Item 29, https://forums.mirc.com/ubbthreads.php/topics/270860

Beta v7.72.2230 changes:
1.Item 21, added.
2.Item 22, https://forums.mirc.com/ubbthreads.php/topics/271517
3.Item 23, https://forums.mirc.com/ubbthreads.php/topics/270858

Beta v7.72.2068 changes:
1.Item 14, extended.
2.Item 19, https://forums.mirc.com/ubbthreads.php/topics/271497
3.Item 20, added. Dithering uses Floyd-Steinberg. Quantization
uses Octree. These are slow as they work per pixel. They
have been added to improve the results of -b 1/4/8 but are
optional switches to maintain backward compatibility.
4.Item 17, changed. Removed prefix and padding. Note that this
means the result can now begin with $ or %, which are in the
base85 alphabet.

Beta v7.72.1339 changes:
1.Item 10, removed.
2.Item 11, updated. Required minor changes to SSL code.
3.Item 12, https://forums.mirc.com/ubbthreads.php/topics/271454
4.Item 13, https://forums.mirc.com/ubbthreads.php/topics/271459
5.Item 14, https://forums.mirc.com/ubbthreads.php/topics/270989
6.Item 15, https://forums.mirc.com/ubbthreads.php/topics/271303
7.Item 16, https://forums.mirc.com/ubbthreads.php/topics/271251
8.Item 17, added.
9.Item 18, changed.

Beta v7.72.302 changes:
1.Item 5, https://forums.mirc.com/ubbthreads.php/topics/271220
2.item 7, https://forums.mirc.com/ubbthreads.php/topics/271244
3.Item 8, https://forums.mirc.com/ubbthreads.php/topics/271257
4.Item 9, fixed.

Beta v7.72.171 changes:
1.Item 5, https://forums.mirc.com/ubbthreads.php/topics/271220
2.Item 6, updated.

Beta v7.72.135 changes:
1.Item 1, https://forums.mirc.com/ubbthreads.php/topics/271098
2.Item 2, https://forums.mirc.com/ubbthreads.php/topics/271105
3.Item 3, https://forums.mirc.com/ubbthreads.php/topics/271117
4.Item 4, https://forums.mirc.com/ubbthreads.php/topics/271154

Changes:
1.Fixed $bvar() gpf bug with negative ranges.
2.Changed bitwise identifiers in bigfloat mode so that, by default,
they work in the same way as in non-bigfloat mode, for backward
compatibility. To make them handle larger values, you can now
specify a bit size parameter.
3.Fixed channels list not showing non-text prefixed channel names.
4.Changed how the keep channels open settings in IRC options work
so that they apply in different numeric events as well.
5.Fixed $modinv() /$powmod() gpf bug relating to large values.
6.Updated CA root certificates cacert.pem file.
7.Fixed /debug custom command not working with local aliases.
8.Fixed custom dialog icon not handling spaces in quotes.
9.Fixed /cnick auto-color as * parameter bug.
10.Removed tray tip warning on startup due latest version of
Windows 11 no longer supporting this.
11.Updated OpenSSL library to v3.0.8.
12.Optimized $bvar(&binvar,N,M) to use faster method.
13.Extended SASL authentication to support IRCv3 >=400 byte
base64 chunks.
14.Added /drawsave -v[pgj] switch to save bitmap to &binvar in
different formats. Note that the -b switch converts the bitmap
before saving in all contexts now.
15.Extended $scon()/$scid() to support -1 for active connection.
16.Extended $unsafe() to allow $null values.
17.Added $encode()/$decode() 'v' switch to support Z85 encoding.
18.Changed Find dialog in Scripts Editor to work in the same way
as most applications. Added case sensitive and whole word match
options.
19.Changed $hfind() with 0 index and /halt to return count.
20.Added /drawsave -du switches, where -d dithers and -u quantizes,
for use with the -b switch.
21.Added /drawpic -v switch that loads a picture from a &binvar
instead of a filename.
22.Fixed editbox eye icon password display bug.
23.Fixed while/if script parser bugs.
24.Fixed $urlget() only sending &binvar body data up to the first
NULL value.
25.Fixed $input() with 'u' option not using active window in some
contexts.
26.Fixed $wrap() not preserving some combinations of control codes
across wrapped lines.
27.Added support for IRCv3 standard-replies capability.
28.Changed nick colors and hilight dialogs to use the background
colors set in the colors dialog.
29.Added $input() 'x' switch that opens dialog on desktop.
30.Fixed $biton() handling of no bitmask parameter.
31.Added /copy -p switch to preserve access/creation/modified
timestamps.
32.Fixed while loop break error message bug.
33.Fixed $input() buffered key presses handling bug.
34.Changed /returnex to work as expected for general use.
35.Fixed scripts editor cursor position being set incorrectly when
window is minimized/restored.
36.Fixed Do Not Disturb bug that caused mIRC to crash/freeze when
minimized to tray.
37.Fixed help file index popup window topic display issue.
1 369,263 Read More
Scripts & Popups Jump to new posts
Re: /write error Khaled 01/06/23 08:24 AM
The reason for this is that notepad needs to access the file. If your script creates a file and then tells notepad to open it, there will be a point at which that file is locked by notepad while it loads the file. This will prevent other applications from modifying that file.
1 172 Read More
Scripts & Popups Jump to new posts
Re: Dark windows theme XGamerAMD 31/05/23 05:39 PM
thats why i askin for assistance ,thnx
2 105 Read More
General Discussion Jump to new posts
Re: mIRC In Dark Mode ? saner 29/05/23 03:03 PM
Hello also glaub so wie ich es habe ist es fast darkmodus smile

geh mal in dein mIRC ordner und mach die mirc.ini datei mal mit notpad oder anderen text tool auf.

und tausche die color einstellungen mit denn hier aus:

mirc.ini open the spoiler ;-)
colordarkmodus

Code
[c]mirc.ini
[colors]
n0=mIRC Classic,88,0,4,0,0,0,11,8,52,82,0,0,9,4,0,0,54,52,11,11,9,1,11,1,11,0,0,1,1,11,97
n1=mIRC Modern,0,6,4,7,2,3,4,3,3,3,3,1,5,2,6,1,14,2,3,5,1,0,1,0,1,14,5,0,0,1,97
n2=Monochrome State,1,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,1,15,1,15,15,15,14,1,15,97
n3=Placid Hues,0,2,4,7,2,3,3,3,3,15,3,1,5,7,6,1,3,2,3,5,1,0,1,0,1,15,6,0,0,1,97
n4=Rainbow Sky,0,7,4,5,1,1,3,3,8,13,3,14,2,7,13,5,3,8,3,4,14,0,5,0,3,14,10,0,0,1,97
n5=DARKMODE,1,0,4,11,0,0,11,52,52,11,11,1,13,4,0,0,0,52,11,12,1,1,0,1,0,0,9,1,1,11,97[/c]


whistle blush crazy



hofffe es ist dir dark genug dann nur die datei leiste von mirc noch was ibn farbe ist sonst alles dunkel modus wie auf dem friedhof *g*

whistle blush crazy



greets
3 6,959 Read More
Scripts & Popups Jump to new posts
Re: /dialog -s[bp] - switch missing for option map? kap 29/05/23 09:28 AM
Thank you!

Everything is peachy :-)
2 158 Read More
General Discussion Jump to new posts
Re: Converting option dbu to option map (PnP) kap 29/05/23 09:27 AM
Click on the Ref link for the github issue in order to get the latest PS one-liner to make PnP 4.22.9 use option map!
1 127 Read More
Bug Reports Jump to new posts
Re: [7.72] DND via tray during /flash causes freezing Khaled 29/05/23 07:46 AM
Thanks this issue has been fixed for the next version.
1 89 Read More
Bug Reports Jump to new posts
Re: Script editor, scroll itself when minimized Khaled 29/05/23 07:45 AM
Thanks this issue has been fixed for the next version.
1 64 Read More
Bug Reports Jump to new posts
Re: $input(,emp) keystroke from buffer Khaled 26/05/23 02:41 PM
Thanks this issue has been fixed for the next version.
2 167 Read More
mIRC Help Jump to new posts
Re: /LIST : the list is empty FuSioN 25/05/23 04:42 PM
Perfect thank you very much
2 141 Read More
Feature Suggestions Jump to new posts
/server -a maroon 24/05/23 11:32 AM
For the /server -a command, the current defaults can have unwanted behavior, which might be improved by either changing the default -a behavior, or having an -A switch or changing the -a to be an -aN switch that defaults to the existing behavior.

The default behavior of -a is to ignore the -g switch and use the -d switch to try as hard as possible to update an existing serverlist entry instead adding a new entry to that -g GROUP. Due to the current behavior of trying to match description, there's no way to add a new serverlist entry - or edit an existing serverlist entry - to give it a description matching 'Random Server' or matching any other existing description in the serverlist.

This next example assumes the following -g GROUP and $servertarget do not yet exist in the serverlist:

/server -a irc.chat.twitch.tv -g Twitch -d "Random Server" -w oauth:myoathtoken -p 6667

Luckily I had the serverlist backed up. Instead of adding a new entry for this servertarget, it instead finds the first match against description 'Random Server' and changes these defined fields for that entry, even though the serverlist item's server-address and GROUP are different.

If I instead do the following 3 commands, the 2nd one does add a new serverlist entry with the description field being blank. But then the 3rd command ignores that there's a already a matching serveraddress/GROUP combo and instead does the above behavior of updating whichever is the first match against description 'Random Server'.

/server -r irc.chat.twitch.tv
/server -a irc.chat.twitch.tv -g Twitch -w oauth:myoathtoken -p 6667
/server -a irc.chat.twitch.tv -g Twitch -d "Random Server" -w oauth:myoathtoken -p 6667

Fortunately /server -r doesn't use -d to find a match for removal.

- -

It seems preferable that default behavior is different, but I know there can be problems from having behavior change without a new switch, even if it's preferred.

It seems reasonable that /server -a should instead try to match against the server name/address parameter *first* before trying to find a match against the -d description.

And, if using the -g switch, then this syntax should instead pretend that only items with that groupname exist, and it would only -r remove items if there's a GROUPNAME match, but if -g is not used then it's free to make a match against the entire serverlist. And likewise if using '-a -g GROUP' it would add a new serverlist entry if it couldn't find an update-match within that groupname
0 67 Read More
mIRC Help Jump to new posts
Re: Hide Chat History maroon 24/05/23 07:33 AM
Sounds like your settings have changed to enable
options/irc/logging/automatic-log-and-reload
Inside that button, the top row determines the default yes/no for logging that type of window, and the lowest row indicates whether it defaults to loading the last few lines of the logfile into the window each time you open it.

If you did nothing to change this setting, one cause for this suddenly being enabled is that this is the default setting, so if the rare situation happens where mirc.ini has become damaged to size zero during a Windows crash, then mirc.ini is re-created with default settings, and you would have found other configuration settings possibly changed back to defaults, including not remembering which of your additional scriptfiles are loaded, or custom event colors.
1 61 Read More
Scripts & Popups Jump to new posts
Any way to hide a Custom Dialog window LeglessUK 23/05/23 12:41 AM
Is there any way to hide a custom window that was created using the /dialog command?

I have a custom dialog window that I wish to toggle on/off (using an icon I've created on the toolbar), but can't find any options like the /window -h or /window -r switches, to do this using the /dialog command.

Currently I'm just using moving the window out of view by doing: /dialog -s $dname -1000 -1 -1 -1 to hide it and /dialog -r $dname to return it back to it's original position, this all seems a bit hacked together. Is there a better way to do this, any help appreciated.
0 78 Read More
Scripts & Popups Jump to new posts
alias fabian { if (!$window(@Ident)) { .window - XGamerAMD 20/05/23 10:19 AM
alias fabian {
if (!$window(@Ident)) { .window -dok0w0 @Ident 400 400 350 500 $+(Comic Sans MS 20) $mircexe 22 } | else { .clear @Ident }
var %data c:\mirc\ident\ $+ $1 $+ .qbm | if (!$exists(%data)) .echo -a No File:04 %data
var %i $lines(%data) | while (%i >= 1) {
var %info $read(%data,%i) | tokenize 32 %info
.iline @Ident 1 00,01 $+(14,$1,00,$chr(44),01) $2 $+(07,$3,00,$chr(44),01) $4  $5
dec %i
}
}

this a script to read the idents of a nick and show the all nicks are connected, i want do in tree form

any help?
0 91 Read More
Feature Suggestions Jump to new posts
Re: $mapw $maph Wims 18/05/23 03:47 PM
I'd like to see this added as well, it would help converting dialog to the supposedly better 'map' option.

After some testing (win10 & win7, 100% dpi aka no dpi setting) it seems the ratio is 1.336 for $mapw and 1.228571428571428571428571428571 for $maph (via bigfloat math, 1.228571 is ok for all practical purposes?).

With that you can convert any size and coordinate and get a dialog that looks the same with map than it looked for dbu.

As well as a better/more standard spacing, map is meant to work with dpi settings, when dbu is not.
1 479 Read More
Scripts & Popups Jump to new posts
Re: Custom windows not showing in Treebar? creative 18/05/23 01:34 PM
I found out how to fix it now, there is a option when you right click at the treebar called "show folders" when i removed that, then i could see my custom windows again. But again thanks for you answer smile
3 169 Read More
mIRC Help Jump to new posts
Re: Tor maroon 17/05/23 12:42 PM
You didn't say which network you're talking about. Here's another forum post on this topic
https://forums.mirc.com/ubbthreads.php/topics/271450/configuring-mirc-with-tor
1 90 Read More
Scripts & Popups Jump to new posts
Re: multi-login kap 17/05/23 11:59 AM
Something like this would work:

Code
alias t1 {
  var %rep 5
  var %interval 61
  if ($timer(post271666)) .timerpost271666 off | if ($hget(conn_ect)) hfree $v1
  else {
    ; add your nicks to the variable %nicklist, space delimited
    ; --------------------------------------------------------- 
    var %nicklist specnick1 specnick2 specnick3 specnick4 specnick5
    ; ---------------------------------------------------------
    ; add nicklist to hashtable/item so we can work with it later
    hadd -m conn_ect nicklist %nicklist
    ; setup the timer and fire/execute it immediately
    .timerpost271666 -io %rep %interval conn_ect | .timerpost271666 -e
  }
}
alias conn_ect {
  var %server testnet.ergo.chat
  var %port +6697
  var %join #test271666
  var %step 3
  while (%step > 0) {
    if (($hget(conn_ect)) && ($hget(conn_ect,nicklist))) {
      ; chop up nicklist, delimit on space - $chr(32)
      tokenize 32 $hget(conn_ect,nicklist)
      ; grab the first nick off the list
      var %nick $1
      ; save the remaining nicks in the hashtable/item
      hadd -m conn_ect nicklist $2-
    }
    ; if nicklist empty, fallback on creating a random nick
    else var %nick $+(test,$base($rand(0,9999),10,10,4))
    ; an altnick might be handy to have, base it off %nick
    var %altnick $+(%nick,_)
    ; connect to the server with the specified settings
    server -m %server %port -i %nick %altnick -j %join
    ; dec the while loop
    dec %step
  }
}
4 224 Read More
mIRC Help Jump to new posts
Re: Odd freezing behaviour Debbierm 15/05/23 01:17 AM
I will experiment and report baxk!
4 563 Read More
Bug Reports Jump to new posts
Re: /while: loop not found Khaled 13/05/23 06:53 AM
Testing this further, it looks like the behaviour is not quite right here. Since you are using /reseterror to cancel the break, it should not be halting the script at that point. This issue will be fixed in the next beta.
3 255 Read More
Scripts & Popups Jump to new posts
Re: /parseline always mangles data Khaled 13/05/23 06:50 AM
Quote
That seems fine, but then it actually sends é (utf8encoded the raw bytes) - But combined with the -u0 switch it seems to works as expected: ©
Good to hear. That's right, you would need to use -u0, since -u affects how lines are UTF-8 encoded/decoded in the core server send/receive routines. The -a switch only affects how the &binvar is parsed in the /parseline command.
3 233 Read More
Feature Suggestions Jump to new posts
/clipboard -bu -- binvar and utf8 encoding Wims 12/05/23 10:05 PM
-b : copy the binvar into the clipboard (not sure if nul byte can be preserved in this case but still worth it if they can't). Copy binvar as is, don't encode/decode the binvar even if -u isn't used
-u : prevent utf8 encoding of character in the range 0-255 as long as the line contains no characters > 255. should be ignored if -b is used
0 80 Read More
Page 1 of 2 1 2