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: Trying to find specific text Epic Yesterday at 02:55 PM
Try use this script code that creates the identifier "$fsub" you need:
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:
//echo -a $fsub(AnApplicationCanBeUsedToFindContinuationOfData,CanBe,1,4)
//echo -a $fsub(AnApplicationCanBeUsedToFindContinuationOfData,tion,2,5)
//echo -a $fsub(AnApplicationCanBeUsedToFindContinuationOfData,tion,2,-5)


  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 54 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:

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

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
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
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
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,144 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 166 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 101 Read More