Re: command line
deVilbaT
Yesterday at 01:59 PM
I'm so old that I didn't notice when [extensions] was added. I will admit that I do keep track of versions.txt. Well. At some point I just noticed that something was wrong with my script that creates separate profile folders and started creating new folders without taking into account the entry in mirc.ini.
As for the Status Window logging option, so I need to look for a reference in mirc.ini that will ensure that I start another session with automatic logging disabled on startup.
Anyway, good work and the AI idea maybe not so stupid. Make another new version and re-deploy as in the case of 6.35.
Ps. If it works out, also think about making mIRC Options entries to designated directories also point correctly from mirc.ini. Seemingly small things but for the unaware or newbies it is another matter. And I guess if I'm not mistaken the values of $mididir, etc are pointed correctly.
Thanks. Regards.
4
128
Read More
|
|
Re: count found items
Talon
Yesterday at 11:34 AM
Issuing a /WHO on a channel potentially multiple times is taxing on a network. From what I'm guessing, based on the aline code it looks like: "<nick> --- <user@host> --- <gecos>" on the format of a match. You should take advantage of mIRC's Internal address list, $ial() and $ialchan() and avoid doing this with raws and individual whos unless there's really something more you need within that who data (looks like whox data actually). You can also test if the who needs performed with: $chan(<chan>).ial, and also see if a who is still in progress with $chan(<chan>).inwho. Here's an example alias outputting what I assume you're after:
alias ipsearch {
;// Is the active window a channel
if ($active ischan) {
;// Is the input only one argument and is a wildcard address?
if ($0 = 1 && *!*@* iswm $1) {
;// Is the internal address list full? If not fill it with who...
if (!$chan($active).ial) { who $active }
;// Attempt to call this alias again formatted to execute search
;// mIRC doesn't allow recursion so this kinda breaks out, like doing it with a timer.
scon -r ipsearch $active $1
}
;// Is the input two arguments <chan> and <search>?
elseif ($0 = 2 && $1 ischan && *!*@* iswm $2) {
;// If the channel who's still in-progress delay and call again...
if ($chan($1).inwho) {
;// Set a NAMED timer (so it can be overwritten if still inwho) to callback once again in one second.
$+(.timer,IpSearch,.,$cid,.,$1) 1 1 ipsearch $1-
}
;//Perform search query in <chan> with <search>
else {
var %x = 0 , %y = $ialchan($2,$1,0)
echo -a *** IP Search in: $1 of: $2 $+ , %y matches:
while (%x < %y) {
inc %x
echo -i2 $1 %x $+ . $ialchan($2,$1,%x).nick --- $ialchan($2,$1,%x).addr --- $strip($ialchan($2,$1,%x).gecos)
}
echo $1 *** End of IP Search in: $1 $+ , %y matches
}
}
;// Throw error: improper format
else { echo -a *** IPSearch Error: $1 is not a valid wildcard address (nick!user@host) }
}
;// Throw error: improper window
else { echo -a *** IPSearch Error: this command is meant to be used in a channel window. }
}
Example Output(s):
/ipsearch *!*s*@*.com
*** IP Search in: #room of: *!s*@*.com, 2 matches:
1. foo --- s295081@964FE7C0.ilkley.irccloud.com --- baz
2. bar --- s268081@21BAC8D2.lymington.irccloud.com --- baz
*** End of IP Search in: #room, 2 matches
/ipsearch *!*@*.IP
*** IP Search in: #room of: *!*@*.IP, 8 matches:
1. ap --- ~j1@56B39474.82A3EA1D.6D1AEB8C.IP --- realname
2. In --- ~allhellno@ABA50D7B.CA5BEAC9.A73CCF3E.IP --- ...
3. Max --- ~Maxdamant@4AC95BA4.81A6E288.1DD1A8A3.IP --- Max
4. Matrix --- ~matrixbot@FF2BFDBD.969BF113.66765DD7.IP --- matrixbot
5. Placeholder --- ~Placehold@2D769DE7.7C4CA6F0.6E96CB81.IP --- Kari
6. TalWin --- ~TalWin@CFFF3F2F.93ABE5B9.90282140.IP --- ...
7. Talon --- ~Talon@CFFF3F2F.93ABE5B9.90282140.IP --- ...
8. Zzub --- ~Zzub@CF1DED85.7D6431C8.553D384C.IP --- ...
*** End of IP Search in: #room, 8 matches
Note: Gecos (real name) may be blank and $chan(<chan>).ial being true (meaning full). There's numerous reasons why for this: You were the first to join the channel so naturally the IAL was filled without ever requiring a who as people join. You're lacking IRCv3 capabilities or no SETNAME updates to fill a users $ial(<nick>).gecos The server supports UHNAMES from raw 005 or negotiates the extended-names IRCv3 CAP so you get full address nicknames when you join, etc... If you run across this issue just manually /who a room first and gecos will become populated.
1
85
Read More
|
|
Re: Chat Gpt
del
16/11/24 02:54 PM
Hello, I made a very basic script meant to encourage msl scripters to take it wherever they would like. It is intended to help people get over the hump of making API calls to openai so it's not bulletproof or feature packed but is instead quick and dirty. You can check it out here: https://github.com/sam-hiatt/Simple-chatgpt-mirc/thanks Riftx!
4
2,008
Read More
|
|
Re: Add CTCP CHAT to CTCP menu
KindOne
13/11/24 03:08 AM
I think you want to use the "DCC -> Chat" Option when you right click on the nick? If you want to make a "CTCP -> Chat" do that then you can edit the menu: Tools -> Script Editor -> Popups (Tab) -> View -> Nickname list. Example:
CTCP
.Chat:/dcc chat $$1
.Ping:/ctcp $$1 ping
.Time:/ctcp $$1 time
.Version:/ctcp $$1 version
1
180
Read More
|
|
Re: Dialogs and Advanced Scripting
Piratoshi
08/11/24 10:32 PM
To create dialogs I still use dstudio.exe. For coloring dialog elements I still use mdx.dll, but some functions doesn't work anymore and it's a ANSI dll, so it breaks some UTF-8 elements this dialog here uses mdx.dll for coloring itens and to set custom fonts, everything works fine except for the UTF-8 chars on the titlebar Would be very useful to have a native way for coloring dialogs
1
215
Read More
|
|
mIRC 7.78 released
Khaled
06/11/24 03:09 PM
Dear mIRC User, mIRC v7.78 has been released today. This is a small update that adds features and addresses a number of issues reported by users since the last release. It includes improvements, changes and fixes, including: Fixed SCRAM logon authentication bugs. Added Windows taskbar support for DCC Send/Get progress bars. Fixed Aero theme helper windows startup flicker bug. Changed "Hide away reminders" option to apply to all contexts. Added support for loading SVG files. Fixed server list parsing bug causing random crashes. Fixed $regml() bug relating to /F and empty groups. Fixed flickering menubar bug. Updated libraries to OpenSSL v3.0.15, TagLib v2.0.2, and LibZip v1.11.2. Updated CA root certificates cacert.pem file. How to upgrade?mIRC is distributed in an installer that installs mIRC on your computer for you. Simply download and run the installer from the download page on the mIRC website. Follow the instructions the installer gives to you. When upgrading all your old settings and scripts will stay as they were, if you want that. Read the questions the installer asks with care and nothing can go wrong. You will be chatting with the new mIRC in no time. If you get stuck or if you want to find out more about a certain feature, just click on a Help button or browse the Help file and you should find lots of hints to help you out. Where to download?As always, the latest version of mIRC can be downloaded from the download page on the mIRC website. Registering mIRCAs you know, mIRC can be downloaded freely and evaluated for 30 days. If you find that you enjoy using mIRC, it would be great and much appreciated if you registered your copy. This licenses you to use your copy of mIRC and helps to support our continued work on mIRC. You can find out how to register here. Full list of Fixes, Changes and Additions.For a more detailed list of recent changes, please see the whatsnew.txt file. You will need to read through the help file to learn more about these changes and their impact. Some changes are obvious, some need getting used to - please take your time to play with them and see how they work. May we invite you to use these forums for all questions you might have? The forums offer great help with everything related to mIRC! Thanks for using mIRC, have fun on IRC!
0
474
Read More
|
|
Extension to $dialog( N ) behavior
Iire
05/11/24 11:04 AM
Would it be possible to extend the behavior of $dialog( N ) to be able to take an optional table argument as well, such that it (as would hopefully be obvious) returns the name of the Nth dialog using a specific dialog table (or the total number of them if N == 0), rather than just giving an "invalid name" error as it does currently? I realize this use case might very well be rather niche; I'm not entirely sure how common it is to even have multiple dialogs with the same dialog table open at once, and of course it isn't difficult to emulate the behavior by checking the table property, but certainly some scripts somewhere must allow multiple dialogs with the same table to be open at once, and for those that do, not having to manually make that specific check would probably be a small but nice bit of relief.
0
107
Read More
|
|
port mdx.dll to dcx.dll
Piratoshi
02/11/24 02:39 PM
Hello people. I want to replace mdx.dll for dcx.dll on my script but I couldn't understand how to use it. Can anyone explain me how can I replace this code here from mdx.dll to dcx.dll?!
mdx SetMircVersion $version | mdx MarkDialog mp3_system mdx SetDialog mp3_system icon sistema/imagens/player32.ico
mdx SetDialog mp3_system bgcolor $rgb(0,0,0)
mdx SetFont mp3_system 120 20 500 Segoe UI
mdx SetColor mp3_system 70 text $rgb(255,255,255) mdx SetColor mp3_system 70 textbg $rgb(0,0,0) mdx SetColor mp3_system 70 background $rgb(0,0,0)
mdx SetBorderStyle mp3_system 70 windowedge
thank you
0
378
Read More
|
|
Re: Editable Language Files
Khaled
02/11/24 10:04 AM
Just a quick update on the language support in mIRC.
Since the last release (when language support was added) I have mainly been reviewing translations (Spanish, French, and German so far) to improve how mIRC parses/accepts/rejects valid/invalid string formats and to detect other issues in translated text. mIRC is an old application with 3000 strings of text, written over almost thirty years, that use different formats, sentence structures, contexts, and so on. These pose a real challenge to translators and I don't envy them having to translate them.
As I was not sure if/when users would contribute translations, I asked Alconost to translate the mIRC resources on Crowdin into Spanish as a first step. While this was in progress, French and German translations were kindly contributed. I have uploaded the French and German translations to Crowdin, which has allowed me to compare the English, Spanish, French, and German translations alongside each other. For the most part, the translations are great. However, there are some tricky combinations of words that I need to provide feedback on to the translators, which will require significantly more time and effort on my part. I would really like to establish a good base-line set of translations, since these may be used by other translators on Crowdin to decide context, meaning, etc. in the future.
I was originally hoping that a set of EFIGS language DLLs would be ready for distribution with the upcoming release but, at this point, I think more work is needed. So the current plan is to release the next version of mIRC soon and to continue work on EFIGS languages for the next release.
Thanks for your help/feedback with the translations so far everyone.
19
7,301
Read More
|
|
|
|