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: Script that send a private msg to a bot every hour Epic Yesterday at 04:12 PM
Originally Posted by Fernet
And what if I want the timer stop also if a user write any word? For example an user say "HELLO" and timer stop.

Try using this variant code:
on *:TEXT:*:#channel:{
  if (HELLO === $1 && $timer(COUNTER)) { .timerCOUNTER off | .hadd -mz counter timer 1800 | msg $chan The timer is disabled and can be started after 1800 secs = 30 mins. }
  if (!$hget(counter,timer)) { .timerCOUNTER 1 1800 msg $unsafe($chan) This message is sent because nobody said anything for 1800 secs = 30 mins. }

Timer named "COUNTER" will restart every time users write something on the channel. If no one communicates on the channel for 30 minutes, a message will be sent that follows the timer. But if someone writes the magic word "HELLO" while the timer is running, then it will stop, and after that it will be impossible to restart the timer for the next 30 minutes.
6 200 Read More
Bug Reports Jump to new posts
Re: .chm files locked by mIRC Wims 29/02/24 08:26 PM
Alright, thanks for the answer. I really don't understand this design from Windows frown
4 73 Read More
Scripts & Popups Jump to new posts
Re: Trip -k key wherever found in output Epic 29/02/24 12:20 PM
When translating your request into Russian language and view the provided code, it seemed to me that you wanted to do something similar to display in your mIRC.

The channel operator executes the command: /mode #channel +h-kv nick1 key12345 nick2

All channel users will see this message: * @Admin sets mode: +h-kv nick1 key12345 nick2
You will see a message like this: * @Admin sets mode: +h-kv nick1 nick2

That is, this script removes the secret key of the channel from the message about set modes. In this case, this will work if this channel key was previously set and can now be unset. The same will be displayed when set the channel key. But hiding the key will only work for those users who have this script code installed, since this message is sent to the chat from the server/services side and you will not be able to change the display of its outgoing data for other users.

Although I would prefer, instead of deleting, to simply replace the key with inscription: * @Admin sets mode: +h-kv nick1 [hide-key] nick2

If I misunderstood your idea and something needs to be fix/changed in this code - let me know about it in a new comment.

    [Linked Image from i.ibb.co]
3 192 Read More
Feature Suggestions Jump to new posts
Re: Enhancing Activity Indicator keystroke 27/02/24 09:03 PM
Great ideas! I didn't realize there was /debug @debug, so thank you for that info. Normally I turn on a debug log which causes a bit more overhead managing a log file, so this is very useful. After running it for a bit I only see PRIVMSG and PING/PONG, so I think even suppressing the latter would result in a large gain. Having an option to not animate on joins/quits/etc. would also help make the icon animation more relevant.
2 97 Read More
Scripts & Popups Jump to new posts
Re: TV Show Lookup / Parsing JSON Data from URL Demarko 25/02/24 03:03 PM
Originally Posted by Demarko
However there is a small problem with the given regex and that one is that it wont work for example for shows where network is NULL and webChannel is used instead. It wont show any data in such a case. Is there an easy way to bypass this problem please?
As for now, I solved my problem using two separate regular expressions. One for the network value and another one for webchannel value.
So if the 1st value returns nothing, I simply try the 2nd one. That seems to do a good job so far cool
5 471 Read More
Scripts & Popups Jump to new posts
Re: Add delay mass voice Simo 24/02/24 01:44 PM
thanks Epic this seems to work proper now all the time, apreciated
6 373 Read More
mIRC Help Jump to new posts
Right-to-left languages + symbols disorder BullHorn 23/02/24 07:45 PM
Noticed this a decade ago but never thought to ask about this.

Whenever text is typed in a right-to-left language like Hebrew or Arabic, any symbol that appears in a sentence, like , or . or "", etc, causes the sentence to lose order, and moves the text from before to symbol to appear after it instead.

The more symbols are used in a sentence, the less readable it becomes.
0 41 Read More
Bug Reports Jump to new posts
Re: $encode/$decode already have 't' switch Khaled 20/02/24 09:18 AM
Thanks, yes, the 't' switch was never actually supported in the code because it was just the default behaviour. However, since it is documented, scripters may still have used it. For backward compatibility, I will be changing the percent encoding switch to another letter in the next beta.
2 220 Read More
Scripts & Popups Jump to new posts
Re: Open Mirc with Bat File Wims 15/02/24 09:06 AM
Where is your mirc.exe located, where is your mirc.ini located? Are you using a custom shortcut to run mIRC manually or are you clicking on the original mirc.exe file?

The thing is, yes you can run mirc.exe and tell it to use a specific mirc.ini file but if you were doing that to run mIRC (prior the .bat stuff) you would know about it, meaning that this isn't really the issue.
1 170 Read More
Scripts & Popups Jump to new posts
Re: how to remove ( ) in line Wims 15/02/24 08:50 AM
//echo -a $mid((fishy),2,-1) -- $mid(LfishyR,2,-1) -- $remove((fishy),$chr(40),$chr(41)) -- $remove((fis()hy),$chr(40),$chr(41)) -- $regsubex((fishy),^\((.*)\)$,\1) -- $regsubex((fis()hy),^\((.*)\)$,\1) -- $regsubex(LfishyR,^\((.*)\)$,\1)

This will illustrate that depending on your exact requirement, $regsubex may be the only short solution as $remove will remove the character everywhere and $mid will just ignore any character here.
1 128 Read More
Bug Reports Jump to new posts
mIRC beta Khaled 07/02/24 03:32 PM
The latest beta can be downloaded here and includes the following changes:

Beta v7.76.1151 changes:
1.Item 18, fixed focus being set on editbox after the find/replace
buttons are pressed.
2.Item 23, fixed.
3.Added back smiley face to right-click on About button at
different icon sizes.
4.Item 24, https://forums.mirc.com/ubbthreads.php/topics/272403

Beta v7.76.1060 changes:
1.Item 15, fixed.
2.Item 5, fixed a Find/Replace bug where the first attempt
for a Replace All was not working.
3.Item 18, changed.
4.Item 16, changed, eg. when switching between mdi/desktop
5.Item 17, fixed.
6.Item 19, fixed.
7.Item 20, fixed.
8.Item 21, updated.
9.Item 22, updated.
10.Updated help file.

Beta v7.76.856 changes:
1.Item 9, https://forums.mirc.com/ubbthreads.php/topics/272379
2.Item 10, added.
3.Item 11, added. To apply to all server connections, you would
need to use /scon -a.
4.Item 12, added.
5.Item 13, added.
6.Item 14, fixed.

Beta v7.76.668 changes:
1.Item 6, udpated. The update.html file now contains a file
signature used by mIRC to verify that the installer is
authentic and unmodified.
2.Item 8, extended.

Beta v7.76.237 changes:
1.Item 1, https://forums.mirc.com/ubbthreads.php/topics/272326
Note that this UTF-8 decodes characters as well.
2.Item 2, https://forums.mirc.com/ubbthreads.php/topics/272329
Tested with different combinations of font/font size/button
size. Needs further testing.
3.Item 3, https://forums.mirc.com/ubbthreads.php/topics/272331
4.Item 4, added. This also UTF-8 encodes/decodes characters.
5.Item 5, fixed.
6.Item 6, added.
This will download and execute the exe specified in update.html
on the mIRC website. The exe is saved to the "updates" folder.
Currently, the exe is the standard install file, set to update
files in silent mode. By default, it will backup existing files,
update mirc.exe, mirc.chm, ircintro.chm, readme.txt, versions.txt,
and cacert.pem, and will perform required updates to other files
where necessary. After the update is complete, mIRC is restarted
and the About dialog is displayed.
7.Item 7, https://forums.mirc.com/ubbthreads.php/topics/272346

1.Fixed $urlget() support for percent-encoded username:password
2.Fixed treebar spacing when switching back and forth between
different icon sizes.
3.Fixed $base() floating point conversion bug.
4.Added $encode()/$decode() 't' switch that percent-encodes/decodes
all characters except "unreserved" as defined in RFC3986.
5.Fixed Scripts Editor find/replace bug where first found item
was not being replaced.
6.Added Check for Updates support for downloading/installing an
update directly.
7.Fixed auto-op/voice/protect being incorrectly triggered when
you don't have ops.
8.Extended $samepath() to handle more contexts, such as subst
drives and network prefixes.
9.Changed Scripts Editor find/replace dialog behaviour to wrap both
forward and backward when a search ends.
10.Added Scripts Editor find/replace dialog "Count" option to
display number of found/replaced matches.
11.Added /markasread [name] that marks the specified window name as
read. If no name is specified, all windows on a server connection
are marked as read.
12.Added Scripts Editor find/replace dialog support for escape key
to stop a long search.
13.Added Scripts Editor find/replace dialog support for remembering
dialog position after restarting mIRC.
14.Fixed $input() dialog not accepting escape key to close dialog
if only ok button is displayed.
15.Fixed editbox eye icon focus bug when switching to another control.
16.Changed Find dialog in status/channel/query windows so that it will
re-open in the active window if Control+F is pressed while open in
another window.
17.Fixed MDI window titlebar colors not being set correctly when
desktop/mdi windows are active/inactive.
18.Changed Scripts Editor Find/Replace dialog to modeless, allowing you
to scroll/edit in the editbox while the dialog is open.
19.Fixed Shift+Tab to show nick list keyboard shortcut not working in
windows without editboxes.
20.Fixed List Channels dialog not enabling/disabling List button when
the active server connects/disconnects.
21.Updated OpenSSL library to v3.0.13.
22.Updated zlib library to v1.3.1.
23.Fixed $input() icon/text positioning on different DPI displays.
24.Added email/userid support for IRCX mask \ character.
1 391,785 Read More
Feature Suggestions Jump to new posts
"\" symbol in the email address saintman 06/02/24 10:37 AM
My dear ones,

In version 6, mIRC accepted "\" in the email address. This is important because in networks based on the IRCX protocol, if you defined an e-mail address in the form "mask\user@domain.com", you gained the so-called camouflage (mask).

However, since version 7, mIRC omits this character in the e-mail address, which makes masking impossible.

Is it a big problem for mIRC to accept the '\' character in email addresses again?

Many tnx in advance,
0 179 Read More
Feature Suggestions Jump to new posts
Re: Additional $server properties Wims 01/02/24 08:57 AM
1 178 Read More