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 evaluating dynamic variable names beer 4 hours ago
Thank you for clarifying this! The examples given here make it much easier to understand. smile
5 53 Read More
Scripts & Popups Jump to new posts
Re: Looking for translator pony 05/04/20 02:19 PM
2 65 Read More
Scripts & Popups Jump to new posts
Re: my on input event help RiMaJoy 04/04/20 08:22 PM
damn ..... i forgot to add the alias for the $p. whistle cry

1 41 Read More
Feature Suggestions Jump to new posts
Re: $file().mtime granularity in mcroseconds Wims 04/04/20 03:38 PM
Agreed, these kind of changes need to go together, if you get such a value in .mtime but you cannot convert it to a date/time with $asctime, it's not so useful.
4 62 Read More
Scripts & Popups Jump to new posts
Re: on active - restricting window focus Khaled 04/04/20 12:37 PM
is it possible to create modal custom @window?

No, this is not possible. As for simulating it, even if you did find a way to make it work with on ACTIVE, it will likely break in a future version as it is not designed to work in this context. You will need to find another way to do this.
1 33 Read More
Feature Suggestions Jump to new posts
Window/tab on Highlights eahm 03/04/20 11:40 PM
While I have a script now (https://forums.mirc.com/ubbthreads....ow-on-highlights-and-mentions#Post267048) I think it would be an awesome feature to add to the default mIRC options.

What do you guys think, I would like to see an option on mIRC Address Book > Highlight > $me > Edit Highlight.
0 36 Read More
Feature Suggestions Jump to new posts
Re: /scrollwindow Wims 03/04/20 09:00 PM
It's based on /findtext to scroll to the line, but /findtext is extremely limited and doesn't allow you to accurately get the Nth line visible, it can fail on multiple line being the same.
4 87 Read More
Scripts & Popups Jump to new posts
QW.PPA - Addon for Peace and Protection 4.22 kap 02/04/20 05:42 PM
Not sure if there are any PnP users left, but I just finished a rough draft of a Q bot utility addon for Peace and Protection (Quakenet). It's usuable and feedback to make it better would be appreciated.

Can be obtained by downloading the zip file from https://github.com/peace-and-protection/PnPAddons422

0 22 Read More
Bug Reports Jump to new posts
Re: Timer -h issue? Khaled 02/04/20 01:33 PM
Is it expected that -c affects timer with an inverval of 0? If so, do you think these results looks correct?

Yes. The reason is the same as mentioned in my previous reply. You are pushing the scripting language to its maximum processing speed. At that point, everything will have an influence, from memory allocation, fragmentation, caching, Windows timer inconsistencies, file access, network access, windows messages, other features being checked/triggered/processed in the background, and so on. The best you can hope for in this context is an average consistency with outliers.
3 120 Read More
Connection Issues Jump to new posts
Re: Cannot make mIRC load external SSL DDLs eahm 02/04/20 09:39 AM
I was just about to reply, it only needed the file "vcruntime140.dll" from the VC++ 2017 runtime.

Thanks for the reply.
2 55 Read More
Scripts & Popups Jump to new posts
Re: pvoice issue/bug or it's just me? Khaled 02/04/20 09:02 AM
The pop/pvoice delay parameter was added long ago when disconnections were more of an issue. The purpose of the delay option is to stagger op commands so that they are not all sent at the same time. The delay is limited to a maximum of 15 seconds (versions.txt 24/10/1995 mIRC v3.72) and is randomized based on the number you specify. If you want to delay it for longer than that, you should use /timer. I will be updating the help file to clarify the purpose of the delay parameter in the next version.
1 50 Read More
mIRC Help Jump to new posts
extended script when someone subscribes? dah 02/04/20 12:18 AM
Okay, I've got a subscript that I use for twitch for the chatbot that I use. I saw someone continue their sub with an extended sub and my message didn't trigger to thank the user for subscribing.
Could someone out there in the coding world help me out, please? Here is the current script I use

raw USERNOTICE:#umadbrahlive:{
if (($msgtags(msg-id).key == sub) && ($msgtags(room-id).key == 147554495)) {
var %nick $iif($msgtags(display-name).key, $v1, $msgtags(login).key)
var %sub-plan $replace($msgtags(msg-param-sub-plan).key, 1000, $chr(36) $+ 4.99, 2000, $chr(36) $+ 9.99, 3000, $chr(36) $+ 24.99, Prime, Prime)
msg $1 /me bingOMG bingHey █ NEW SUB █ bingHeart bingHype Thank you %nick for subscribing with a %sub-plan Sub! bingPat
if (($msgtags(msg-id).key == resub) && ($msgtags(room-id).key == 147554495)) {
var %nick $iif($msgtags(display-name).key, $v1, $msgtags(login).key)
VAR %sub-plan $replace($msgtags(msg-param-sub-plan).key, 1000, $chr(36) $+ 4.99, 2000, $chr(36) $+ 9.99, 3000, $chr(36) $+ 24.99, Prime, Prime)
msg $1 /me bingOMG bingHey █ RESUB SUB █ bingHeart bingHype %nick has just resubscribed for $msgtags(msg-param-cumulative-months).key months in a row with a %sub-plan Sub! bingPat
if (($msgtags(msg-id).key == subgift) && ($msgtags(room-id).key == 147554495)) {
var %nick_from $iif($msgtags(display-name).key, $v1, $msgtags(login).key) , %nick_to $iif($msgtags(msg-param-recipient-display-name).key, $v1, $msgtags(msg-param-recipient-user-name).key)
VAR %sub-plan $replace($msgtags(msg-param-sub-plan).key, 1000, $chr(36) $+ 4.99, 2000, $chr(36) $+ 9.99, 3000, $chr(36) $+ 24.99)
msg $1 /me bingOMG bingGift █ GIFT SUB █ bingHeart bingGift Thank you %nick_from for gifting a %sub-plan sub to %nick_to $+ ! bingPat
on *:TEXT:*subscribed*:#umadbrahlive:{
ELSEIF (%msg-id == sub) {
ELSEIF (%msg-param-sub-plan == Prime) MSG $1 tatPrime %name just subscribed with Twitch Prime! tatPrime
0 38 Read More
Scripts & Popups Jump to new posts
Re: No such nick event trigger? Stephen 01/04/20 11:55 PM
raw 401 event works for this just tested

also 403 works for channel where the channel does not exist and 404 works when no outside messages mode is set on the messaging channel.
1 28 Read More
Scripts & Popups Jump to new posts
Re: userlist clean up Stephen 01/04/20 11:19 PM
I figured out a way to do it. its not pretty but it works.

As I have the scene script running which creates a nick.ini file. As the file is updated each time the person joins etc the file should never be out of date. So if I take the ones that have not been updated in a month and create a text file of the names using dir /b >purge.txt then at the top line I put in the total number of lines.

The script then becomes

upurge {
set %purgecount $read(purge.txt,0)
if %purgecount == 0 goto done
set %upurge $remove($read(purge.txt,%purgecount),.ini))
if %upurge == $null halt
/ruser %upurge
dec %purgecount
goto next

the set reads the first line which is the total number of lines, the working backward grabs each line removes the .ini extension and does a /ruser the count is decreased and it runs again until the count hits 0.

I ran this with over 1,803 lines and it worked removing users. Granted there were a great deal of no such user messages. but it functioned to remove any of the ones found.
1 58 Read More
Scripts & Popups Jump to new posts
twitch audio command kirtym 01/04/20 03:22 PM
i making a mirc bot for my twitch channel so i was wondering anyone know the code that i can use so that when i use a specific command, a audio file will play smile
0 17 Read More
Scripts & Popups Jump to new posts
twitch audio command kirtym 01/04/20 02:09 PM
so i made a mirc bot in glitch.com so i was wondering if anyone know how to make it so when u type in a command such as !hi it will play a specific audio i been search online for quite some time but i didnt find it so i was wondering if anyone here can help me smile
0 9 Read More
Scripts & Popups Jump to new posts
Re: adding a visual counter on a %loop Wims 31/03/20 08:00 PM
If you want display a counter and you expect hundreds of matches over 35000 lines, echoing one line to a window is not very good, you could use a dialog and a text button that you increase, or a picture window allow you to create your own progress bar, or simply display the number.
9 147 Read More
Bug Reports Jump to new posts
Re: on keydown bug Wims 31/03/20 01:30 PM
Right, sorry I forgot about that.

Ok for printscreen, indeed.

Google is full of problem with ToAscii/ToUnicode killing/destroying dead keys with the exact same situation I'm describing.

It looks like the suggested workaround is to call the ToUnicode function twice with the exact same parameter, to eat any dead key if any.
You may be already using some kind of system like this for it since it does cycle between triggering on keydown and not triggering it, except it does it on the wrong keystroke.

However, as I've said, one cannot rely on $keychar (or $keyval anyway) in the on keydown event to get the resulting characters.
I was going to suggest that $keychar should probably be set only on the second key press of the dead key there, which mIRC could do, but I'm not sure it should, again even I knew I pressed a dead key and a vowel, i wouldn't know what to do based on the keys, msl doesn't provide the necessary tool to do the job, and I'm not asking for it, rather, I really hope you can add a new event which would trigger for WM_CHAR messages, what do you think of such feature?
5 1,117 Read More
Bug Reports Jump to new posts
Re: /logview command TECO 30/03/20 04:21 PM
Originally Posted by TECO
Hi Khaled,
To help you I created a new video, where I show that I am connected to 2 networks and I switch between the two networks and where I open @windows and that when closing them, the Window folder is collected.

I also made an example with the sort buttons option active / disable and you can see that the @AAA window is always at the top as if it were in alphabetical order.

I hope again to be helping you.

video address: Video Record 2

Hi Khaled,
as I showed in the second video I made, there are a few more details that I detected. The problem with the Window folder collecting all windows, happens whenever we are in more than one network.

If we execute the command on the first network: //window -znkg1 @Test (when closing the @Test window) all other windows in the Window Folder are collapsed.

If we execute the command on the second network: //window -znkg1 @Test (when closing the @Test window) the remaining open windows in the Window Folder will be expanded.

I tested the new beta version 7.61.159 and the problem continues.

14 390 Read More
Bug Reports Jump to new posts
Re: mIRC beta Khaled 30/03/20 01:29 PM
The latest beta is v7.61.159 and can be downloaded from here. It includes the following changes:

Beta v7.61.159 changes:
1.Item 1, https://forums.mirc.com/ubbthreads.php/topics/245917
Required significant changes to code.
2.Item 2, https://forums.mirc.com/ubbthreads.php/topics/266935
3.Item 3, https://forums.mirc.com/ubbthreads.php/topics/266791
Experimental. Required significant changes to code. Uses undocumented
Windows APIs. Only works on Windows 7 onwards. If any part of the
method fails, defaults to global Control+Break.
4.Item 4, updated.
5.Item 5, updated.
6.Item 6, https://forums.mirc.com/ubbthreads.php/topics/266960
7.Item 7, https://forums.mirc.com/ubbthreads.php/topics/266966
8.Item 8 and 9, https://forums.mirc.com/ubbthreads.php/topics/266720
Required important changes to the regex and these identifiers,
so need testing to ensure changes are working correctly and are
backward compatible.
9.Item 10, updated.

1.Changed how on KEYUP/KEYDOWN are processed. This affects the values
returned in $keyval and $keychar for combined key presses.
2.Reverted change to $cnick() so that it returns default values for
non-existent nicks.
3.Changed how Control+Break key is handled so that it will work only
when mIRC is the active application.
4.Updated PCRE regex library to v8.44.
5.Updated LibZip library to v1.6.1.
6.Added $width() and $height() sixth $true/$false parameter to enable
custom window-specific measurement.
7.Added support for irc hotlinks that uses the non-standard plus sign
prefixed port number format, such as +6697.
8.Extended $bfind() to support regex searches using:

$bfind(&binvar, N, M, [name]).regex

Where M is a regular expression when .regex is used. The name parameter
is the $regml() name.

9.Extended $regml()/$regmlex() to save result to a &binvar using:

$regml([name], n, [&binvar])
$regmlex([name], m, n, [&binvar])

When saving to a &binvar, returns the length of the saved text.

10.Updated OpenSSL library to v1.1.1e.
1 180,691 Read More
Scripts & Popups Jump to new posts
Re: Erroneous active channel mode using isletter TECO 30/03/20 09:50 AM
Originally Posted by Dazuz
$chan(#).mode returns the modes and their parameters (key, limit...).

Use $gettok($chan(#).mode,1,32) to get the modes only.

Thank you
2 38 Read More
Scripts & Popups Jump to new posts
Re: Possible to store a command in a variable? KubosKube 29/03/20 09:00 PM
I do something similar, where I turn text into a command.
Here's the method I use.

if (%condition == $true) {
  $eval(%cmd $nick line1)

The fact that the $eval identifier is not actually part of command has yet to cause me any issues.

I was warned before, however, to make sure that you are the sole person able to insert a command here.
2 215 Read More
Scripts & Popups Jump to new posts
Re: Whisper Twitch [help] KubosKube 29/03/20 08:52 PM
It's been a long time since I've tried to send a whisper, but the method that worked for me was:

msg #channel /w Text goes here.

I did find that my bot could not send a whisper to an account that had not yet already sent a whisper to the bot, meaning that the bot cannot start a conversation.

This may be old news, but perhaps it'll help.
1 115 Read More
mIRC Help Jump to new posts
Re: change colour of switchbar please? KindOne 29/03/20 04:20 PM
I think you want this:

/background -h

As far as I can tell, its not possible to switch the channel tab colour.

1 113 Read More
Scripts & Popups Jump to new posts
get messages area of channel Doctor_Souza 29/03/20 04:53 AM
hi im makeing a mirc dll, i get nicklist using this command "FindWindowExA(strtoint(string(gettok(data,' ',1))),0,'listbox',nil)", but how to get messages area?
0 42 Read More
Page 1 of 16 1 2 3 15 16