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: help with sort of nick tracker or AK script Revan Yesterday at 03:45 AM
Write some aliases and identifiers to create/read/update/delete and then add save to external file when you edit the hash table with those aliases, typically you would want to start the system using a mIRC event like:

on *:start:initHashSystem

In that alias you would create then load your saved data from the .hsh file you saved before. Use more events to backup the system automatically too like exit disconnect depending on the data you are keeping. Then for your needs use the $hfind() to search and then $hget() identifier to retrieve , /help hash tables

I made something like this nearly 20 years ago, and it still works now. Updating it now.
1 55 Read More
Scripts & Popups Jump to new posts
Re: How to kick with older reason? Help me pls Robert 03/05/21 03:13 AM
Dear Epic, i have an idea for you to make code :P

1. When Admin type command: !b <NickName> in every channels Bot have Op, then MyBot will banned IP/HOST (default $address 2) and kicked that NickName with RANDOM REASON on file text atb_reason.txt AND AUTO SAVE [id: number]; NickName; IP/HOST and REASONKICK like this in atb_database.txt file text:

Example:
Line1: [id: number],NickName,*!*@IP/HOST,ReasonKick <==== If this NickName or IP/HOST join myroom will be kicked and banned with this ReasonKick and [id: number] in atb_database.txt.

Line2: similar above.....
Line3:.....etc........

2. I have already to make some commands to add blacklisted user to atb_database.txt with syntax:

a) Add Auto ban command: !badd [id: number],NickName,*!*@IP/HOST,ReasonKick

Example: !badd [id: 5864],BlackNick,*!*@10.11.12.13,You are bad chatter not welcome here


b)Del Auto ban: !bdel [id: number],NickName,*!*@IP/HOST,ReasonKick or !bdel NumberWantToDeleted

Example: + !bdel [id: 5864],BlackNick,*!*@10.11.12.13,You are bad chatter not welcome here
OR + !bdel 2

c) List Auto ban: !blist <== then MyBot will list all of auto ban blacklisted in atb_database.txt to channel

Send you for reference and for the purpose of writing code is more convenient and correct for me. Thanks Epic so much! You are so kind and wonderful
14 336 Read More
Scripts & Popups Jump to new posts
random nick from userlist ColdPower 02/05/21 01:52 PM
Hello
im trying to create new script and cant do it alone because my knowlege is ... weak wink

Code
  if (!test isin $1-) {
    if ($kanaly) {
      var %array.1 = 8,5-- 111 --
      var %array.2 = 8,5-- 222 --
      var %array.3 = 8,5-- 333 --
      var %array.4 = 8,5-- 444 --
      var %array.5 = 8,5-- 555 --
      var %array.6 = 8,5-- 666 --
      var %array.7 = 8,5-- 777 --
      var %x = $rand(1,7)
      msg $chan $nick,$+($chan,$rand(1,$nick($chan,0),a,o) %array. [ $+ [ %x ] ]
    }
  }


i grab code after msg $chan from others on this forum and try many many things and failed

i need a random answer to random nick from nicklist in mIRC after someone type !test(command will change later and answers)

i will be really helpful if someone put here some code wink
0 26 Read More
Bug Reports Jump to new posts
mIRC beta Khaled 29/04/21 09:01 AM
The latest beta is v7.64.6858. It can be downloaded here and includes the following changes:

Quote
Beta v7.64.6858 changes:
1.Item 9, https://forums.mirc.com/ubbthreads.php/topics/268616
Several changes to make code more robust.

Beta v7.64.6771 changes:
1.Item 24, https://forums.mirc.com/ubbthreads.php/topics/268650
2.Item 16, updated.
3.Item 9, https://forums.mirc.com/ubbthreads.php/topics/268616
Fixed rare bug that caused min/max/close buttons to be
displayed incorrectly.

Beta v7.64.6635 changes:
1.Item 18, https://forums.mirc.com/ubbthreads.php/topics/268624

Beta v7.64.6628 changes:
1.Item 13 and 14, https://forums.mirc.com/ubbthreads.php/topics/268651
Fixed multi-line comment bug.
2.Item 9, https://forums.mirc.com/ubbthreads.php/topics/268622
Reverted some changes to work like earlier beta that should
cause less interference with other Windows behaviours.
3.Item 23, https://forums.mirc.com/ubbthreads.php/topics/268667

Beta v7.64.6394 changes:
1.Item 7, updated.
2.Item 9, https://forums.mirc.com/ubbthreads.php/topics/268622
I was not able to reproduce this issue, however I have added
extra checks in a number of places.

Beta v7.64.6125 changes:
1.Item 21, fixed.
2.Item 22, https://forums.mirc.com/ubbthreads.php/topics/268598

Beta v7.64.6087 changes:
1.Changed /fupdate setting location in INI file so that it
defaults to 95 for both new and existing users.
2.Item 19, changed.
3.Item 20, changed.
4.Item 9, https://forums.mirc.com/ubbthreads.php/topics/268575

Beta v7.64.5829 changes:
1.Item 16, updated.
2.Fixed https://forums.mirc.com/ubbthreads.php/topics/268507
This was due to removing the internal border in the MDI
area. There was very old code that had hard-coded support
for this.
3.Item 15, added alternative method for use on Wine.
4.Changed /fupdate to default to 95 for new installs. The reason
for using 95 is that an even number usually leads to less
visual feedback in some situations. Also added a $fupdate
identifier. Note that these are not documented.
5.Items 17 and 18, https://forums.mirc.com/ubbthreads.php/topics/268501
These changes needed more work than expected and required
changes to the tab completion routine. Needs testing.

If you tab complete a % prefix, it will cycle through %halfops
if any exist. It will only evaluate a %var if you enter the
full %var name and only if you are not currently cycling through
%halfops.

Beta v7.64.5513 changes:
1.Item 9, fixed/optimized a number of issues.
2.Item 10, https://forums.mirc.com/ubbthreads.php/topics/268466
3.Item 11, https://forums.mirc.com/ubbthreads.php/topics/268487
4.Item 12, https://forums.mirc.com/ubbthreads.php/topics/268483
I've had to write my own tiling code as WM_MDITILE will not fit
windows to the edge of the MDI area. My code tries to mimick
WM_MDITILE as closely as possible.
5.Item 13, changed.
6.Item 14, added. This tries to parse and sort items in a way
that groups similar items together.
7.Item 15, added. Using an undocumented method for scrolling in
menus. It works all the way back to Windows XP, so seems
reliable.

Beta v7.64.4889 changes:
1.Item 1, added.
2.Item 2, reverted.
3.Item 3, updated. Also removed error codes from the messages in
resources as we already know them. I would have preferred to use
FormatMessage() as it returns error messages in the system
language but its messages are long and descriptive as opposed
to mIRC's short, compact messages.
4.Item 4, https://forums.mirc.com/ubbthreads.php/topics/232845
5.Item 5, https://forums.mirc.com/ubbthreads.php/topics/268311
6.Item 6, https://forums.mirc.com/ubbthreads.php/topics/268415
7.Item 7, udpated.
8.Item 8, updated.
9.Item 9, needs testing.

MDI windows in Windows 10 currently use the Windows 7 theme due
to Microsoft deprecating support of MDI windows. This beta adds
Windows 10 Aero theme support to MDI windows. This is enabled
only for MDI windows and only when the Windows 10 Aero theme is
in use.

I have had to make a number of design decisions regarding colors,
borders, button sizes, and so on, to approximate the look and
feel of the Aero theme. I am fairly happy with the result. It is
not an exact match to Aero but close enough, with the aim being
to make MDI windows look reasonably up-to-date.

Changes:
1.Added flash option to ignore dialog options.
2.Reverted change to nick idle time so that it is updated per second
once again.
3.Updated some of the winsock error messages in resources to use more
up-to-date descriptions.
4.Fixed regex global matching bug with UTF-8 characters.
5.The styles dialog has been removed. The channel nicklist sizing
bar now uses a standard width. The editbox and nicklist borders now
use standard Windows colors. Windows no longer use an internal frame.
6.Fixed tray tips Control+O display bug.
7.Updated OpenSSL library to v1.1.1k.
8.Updated TagLib library to v1.12.
9.Added Windows 10 Aero theme support to MDI windows.
10.Changed the aliases list menu to use shorter, combined a-z menus,
with separators, and any left over items in a ? submenu.
11.Fixed URLs List SendTo menu item being disabled.
12.Fixed MDI tile feature not fitting the right/bottom-most windows
to the edge of the MDI area.
13.Changed scripts editor alias and popup menubars to use an "Index"
menu name to list aliases/popups.
14.Added scripts editor "Index" menu to remote menu bar that lists all
of the items defined in a script. It also includes partial lines
for some items to give context.
15.Added home/end/page up/down key support to popup menus to allow
for faster scrolling in long menus. These keys normally do nothing
in menus, however they will now scroll multiple lines per key press
and will stop once they reach the top/bottom of the menu.
16.Updated CA root certificates cacert.pem file.
17.Extended tab completion to allow using just a channel mode prefix
to begin cycling through all matching users with that mode.
18.Extended tab completion to support %halfops. If an existing %var
name is used, it is evaluated as in past versions, if you are not
currently cycling through %halfops.
19.Changed Window menu to not show windows hidden with /window -h
unless shift key is pressed when viewing menu.
20.Changed /window -h to not hide Status Windows in treebar,
switchbar, and window menu, as these are root windows for all
other windows on that connection.
21.Fixed bind to adapter/IP address bug that caused it to use wrong
adapter if adapter has two identically named IPv4 and IPv6 entries.
22.Fixed bind to adapter/IP address bug that caused it to block
connections in some contexts.
23.Fixed DCC get sometimes reporting that the transfer completed when
there was insufficient disk space to save the whole file.
24.Fixed scripts editor bug that caused incorrect indentation in saved
files with certain combinations of comments and brackets.
1 206,991 Read More
Feature Suggestions Jump to new posts
Re: $file() - add identifier new properties Wims 28/04/21 09:23 PM
Sorry I thought .product would return the product name, as well as the description being available there
3 325 Read More
Feature Suggestions Jump to new posts
Re: Add parameter to select the line "menu[:number]" Wims 27/04/21 02:43 PM
I mentioned generating an error when the menu is not a single item and when inserting at position N could break a menu in half or more, and I specifically said something for the case you're mentioning.

mIRC is generating the menu so it already know what's the exact design of the menu, it's entirely possible for mIRC to modify the order, it's just that the current design makes a lot of sense, and this suggestion, while not a bad idea in itself, doesn't make more sense if any.

I think @OP wants full control of the popups menu of his @window, which is extremely fair, and it's already a big problem when people have menu * { in their script, bloating your own popups menu.
I think to solve this much deeper issue, we need a prefix event for the menu event, which would indicate that if this scripted menu event is the first one to be used to build the popups menu for the @win, then only that popups menu would be used, guaranteeing you that either you get your popups as you want, or else it means there's another menu matching that window name, and you can get rid of it.

Code
menu:! @win {

}
8 509 Read More
mIRC Help Jump to new posts
Re: How do I automate Nickserv Identify <password>? maroon 27/04/21 01:59 PM
Also, Epic's method works fine even if the password begins with the $ or % character:

//echo -a $+($,version) and $+(%,variable)

You could also use $eval to prevent a password being evaluated: //echo -a $eval( $passwordstring ,0)

And, while it is true that you have your password be given to nickserv while connecting to the server, by including it in the serverlist entry, I have encountered networks in the past where services frequently died and restarted, where they immediately demanded everyone's password again, forcing everyone into a guestnick if they didn't send their password again.
12 34,108 Read More
Bug Reports Jump to new posts
Re: MDI Aero theme buttons TECO 26/04/21 09:33 PM
Yes. My antivirus is McAfee Livesafe
19 987 Read More
Developers Jump to new posts
Re: NoName Script Help kap 23/04/21 07:30 PM
I wrote a comparison of different mIRC scripts and their features. It's viewable here. It's a little outdated, but yeah PnP still works after 20 years!

The link to the NoNameScript downloader shows a page on forum.myrabbits.de with this picture:

[Linked Image from forum.myrabbits.de]

I wrote a RSS addon for PnP, in case that feature was what your looking for in NoNameScript: Repository for PnP addons
4 16,202 Read More
Feature Suggestions Jump to new posts
Re: Resizable for window "Scripts Editor/File/Order" Epic 23/04/21 05:08 PM
I agree with your suggestions. Still, being able to resize this window would be handy. (If this is possible).
So, if I understood everything correctly, then, taking into account my idea and your new suggestions, this window may look like this:

      [Linked Image from i.ibb.co]

The top button is clickable and indicates the path to the folder of the script selected in the list. When you click on this button, you can open the folder with the script.
But if all scripts are in the client's root folder or if the string turns out to be too long, then reasonable limit yourself to indicating such a path "..\mIRC\scripts\" for to shorten the string.

By the way, the same could be applied to the popup "Scripts Editor/View/More Files", when searching for scripts that are not included in a too long list.

2 264 Read More
Scripts & Popups Jump to new posts
Re: Need help with regular expressions Raccoon 23/04/21 11:49 AM
I'd recommend a /while loop with $istok(), but it should be possible to merge the two strings together and create a pattern that walks for matching tokens on both sides of the center line.

//var %s = f,o,x,e,s|p,i,x,e,l,s | echo -a $regex(%s,/(?<=^|,)([^|,]+)(?=(?:,.*?)?\|(?:.*?,)?\1(?:,|$))/g) - $regml(1) - $regml(2) - $regml(3) - $regml(4) - $regml(5)

> 3 - x - e - s - -

This might contain some bugs that I missed, but I think I caught them all.

Code
/(?<=^|,)([^|,]+)(?=(?:,.*?)?\|(?:.*?,)?\1(?:,|$))/g

/
  (?<=^|,)      // look-behind for either start-of-line or a comma.
  ([^|,]+)      // capture group: start reading characters that are neither pipe nor comma.
  (?=           // look-ahead: and these characters must be followed by all of this...
    (?:,.*?)?   //   optionally: a comma and more characters on the left side of the pipe
    \|          //   the center-line pipe must be there
    (?:.*?,)?   //   optionally: more characters followed by a comma
    \1          //   the matching capture group of characters from earlier
    (?:,|$)     //   must be followed by a comma or the end-of-line
  )             // end of look-ahead collection.
/g              // global:  do this over and over again to find multiple matches.


If I were to write this a little better, I would use the magical \G anchor at the beginning to assert that nothing gets skipped, but I already wrote it so.
3 204 Read More
Feature Suggestions Jump to new posts
Re: Open links in Incognito Mode browser window eahm 22/04/21 08:35 PM
Too many options, the best one would be just to right click and have an option to "Open URL" and "Open URL in Incognito" with the default browser in use.
3 159 Read More
Scripts & Popups Jump to new posts
Re: Open Proxies druino 21/04/21 12:29 AM
thanks for your help friends
Hidden & Epic

very kind both for your help thank you
12 1,121 Read More
mIRC Help Jump to new posts
Re: /Whowas for nick Epic 20/04/21 08:10 PM
Unfortunately, there is no such built-in function in the mIRC client and in IRCd programs, at least I have not seen it.

Most likely you mean some kind of script written by someone else for a client. I am assuming this script is called "Seen" or something. I think this script can still be found on the Internet.

Most often, such scripts are used in bot the "Eggdrop", to track users visits and their actions (for efficiency) on multiple channels at once. But if the user turns out to be quite dodgy and starts changing his nicknames after exiting from all channelss, then tracking these changes will be much more difficult or just impossible. Therefore, in order to fully track users nicknames changes, the bot may need the privileges mode of the IRC network operator, which is not installed everywhere and without special desire for network security reasons. So that, using such a script on your the personal channel without special privileges will bring a small effect of what you wanted to see and may be useless in this case.

Ideally, it would be nice if the developers of IRCd programs would add as an add-on module such a function, with command for request on server. For example: "/WHONICKS" or "/WHATNICKS" <nick|mask> [30d]

Nevertheless, if there is a need to create a new script for the mIRC client with this function, then we can think about it.


2 155 Read More
Scripts & Popups Jump to new posts
Re: Using several events in a single script Epic 16/04/21 07:57 AM
Since your task is quite confusing, I'm suggest you try to depict the graphic schema (plan) in the form of a picture of what you would like to get as a result from the work of the created script.
Perhaps this will be clearer and understandable in any language, to be able to help you.

Example:
         [Linked Image from i.ibb.co]
12 585 Read More
Bug Reports Jump to new posts
Re: Bug $lines(file.txt) Raccoon 15/04/21 02:03 PM
BraveHeart73, So a lot of Turks are still using 6.35, due to the shift from code pages to unicode?

If I were to write a script that made mIRC 7.x work, would you and others use it? It should be a short simple script.

I just need a table of the ASCII to Unicode translation of your code page for each character you use. Is it code page 857 or 850?
6 249 Read More
Scripts & Popups Jump to new posts
Re: Lower Level Access colt45 15/04/21 07:44 AM
Yup, I did try that but didn't work but it's all good now, hope for an update in the next version? :P
12 260 Read More
Scripts & Popups Jump to new posts
Re: Right-Click Does Nothing After Re-Install scotter23 13/04/21 11:07 PM
Bingo! Thanks! All of the above got me back up. Thanks!
3 145 Read More
Feature Suggestions Jump to new posts
Re: Use the "#" symbol for explanatory comments Khaled 13/04/21 09:16 AM
In general, if a feature already exists, eg. ; /**/ and REM can currently be used for comments, I will not add another method unless there is a really good reason for it. In addition, the # character would not be a good candidate here as it is already used in other contexts and I would not want to overload it further. Thanks for your comments everyone.
17 557 Read More
Bug Reports Jump to new posts
Re: MDI duplicate icons Loki12583 12/04/21 09:30 PM
It's not strictly related to DCC, probably just general window creation. I reported the problem here:

https://forums.mirc.com/ubbthreads.php/topics/268294/re-duplicate-icons-in-menubar

I believe it was also mentioned in another thread but not the original topic of that thread. Unless you were also using remote desktop, I'd be surprised if we could identify the precise cause.
3 175 Read More
mIRC Help Jump to new posts
Re: mIRC 7.x Turkish character problem? maroon 12/04/21 05:41 AM
Hello, you're basically asking the same question that you asked 4 years ago, and which was answered 4 years ago. A more complex answer related to your thread is in the "Unicode Support" sticky at https://forums.mirc.com/ubbthreads.php/forums/2/1/general-discussion.

It appears that you're trying to use a server where they are using a Turkish codepage. When people are using "code pages", they see the same characters as other people - but only when both people are using the same codepage. Mirc has changed to using unicode character mapping that lets everyone around the world see everything as the same character. That page I linked shows a little of the way Mirc can be scripted into seeing things in Unicode the same way that someone using Turkish codepages would see them. For the specific examples you gave, these are cases where the Turkish codepage is using a character different than everyone else in the world is using it. This example shows the connection between how people using the Turkish codepage sees the character - and how everyone else in the world sees that same character.

//var -s %a $chr(222) , %b $utfencode(%a,162) , %c $utfdecode(%b) | echo -a $asc(%a) -> $asc(%b) -> $asc(%c) | var -s %x $chr(350) , %y $utfencode(%x) , %z $utfdecode(%y,162) | echo -a $asc(%x) -> $asc(%y) -> $asc(%z)

//var -s %a $chr(253) , %b $utfencode(%a,162) , %c $utfdecode(%b) | echo -a $asc(%a) -> $asc(%b) -> $asc(%c) | var -s %x $chr(305) , %y $utfencode(%x) , %z $utfdecode(%y,162) | echo -a $asc(%x) -> $asc(%y) -> $asc(%z)

The advice you were given 4 years ago still stands. It would be difficult to try to script a solution which allows you to see the others as if they were using Unicode, and which would allow you to send Unicode text to them which allows them to think you're using the Turkish codepage. It would be complicated because it would need to intercept messages sent by the server and replace them with the unicode equivalent. This includes filling your nicklist with "wrong strings" which would "look correct" to you.
5 2,549 Read More
Feature Suggestions Jump to new posts
Nicks in bold (from alt-b settings) eahm 10/04/21 09:05 PM
Hi Khaled, can you please add an option in the attached screenshot/settings to show nicks in bold in messages?

[Linked Image from i.imgur.com]

Thanks.
0 131 Read More
Bug Reports Jump to new posts
Re: tab complete Khaled 10/04/21 12:01 PM
Thanks. It looks like this broke with the %halfop change in beta 5829. This has been fixed for the next beta.
2 251 Read More
Bug Reports Jump to new posts
Re: DCC (in)complete Protopia 08/04/21 02:23 PM
Originally Posted by maroon
I'm guessing this technically is not a DCC problem, because technically the transfer is complete, it's just that the separate "save to disk" fails.


I have nothing extra to add about the reported issue, but I would like to opine that file receiving is a combination of the DCC protocol completing correctly and the file being written to disk correctly - and either both succeed or the transfer was a failure.
4 200 Read More
Scripts & Popups Jump to new posts
Re: Multiple trigger Raccoon 06/04/21 06:13 PM
Code
On $*:TEXT:^(\.c|!c|\.command|!command)$:#help: {
(or) On $*:TEXT:^([.]c|!c|[.]command|!command)$:#help: {
(or) On $*:TEXT:^([.!]c|[.!]command)$:#help: {
(or) On $*:TEXT:^([.!](?:c|command))$:#help: {
  echo -a The command $regml(1) was typed.
  ; note that '.' is a special wildcard character in regex, so it
  ; must be escaped with '\' or presented inside a character class '[]'
  ; see how alternation works with pipe '|'
  ; see how grouping_with_backreference works with '()'
  ; see how grouping_without_backreference works with '(?:)'
}
3 210 Read More
Page 1 of 13 1 2 3 12 13