mIRC Home    About    Download    Register    News    Help

Print Thread
Page 1 of 2 1 2
Joined: Sep 2003
Posts: 261
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
I take it anyone reading this read my previous post about there not being a working multifile select dll out there thats under 10K that worked. Well, I thought I would just create one smile.

I am not a programmer but, using the source code of the fileselect.dll and adding some of my own I happened to come across I MADE ONE!. I stayed up way late working on this and to my amazment I got it working laugh. A friend of mine in a chat said it couldn't be done. And another poster told me basicly told me to not bother. Well I bothered and succeeded!

The dll returns the multiselected files as PATHNAME 1| firstfile 2| secondfile etc...

It's prerelease beta test version is located here:

http://chorn.com/~brandon/mirc/exes&zips/msfile.zip

Right now I am limited to my knowledge of programming so this DLL can't do very much but allow you to specify the directory and title of the open dialog. I did include the same file type choices as in mIRC's $sfile. I hope to improve this in weeks to come like center it and allow more user options. But for now I thought I'd just let everyone check it out.

I know that there is a $msfile identifier in mIRC 6.1 but this is for those users of mIRC 6.0* and lower hopefully. I tested this and found it to work for mIRC 6.03 (which is the current version of mIRC I use).

Oh yeah also included with the dll is a readme file and my own $msfile identifier script smile.


We don't just write the scripts, we put them to the test! (ScriptBusters)
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
without full source, no one smart would use this dll..


http://MTec89Net.com
irc.freenode.net #MTec89Net
Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
post this at http://www.mircscripts.org/

not here...

this is a help forum, not a place to display your scripts.


If it ain't broken, don't fix it!
Joined: Sep 2003
Posts: 261
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
Oh, I'm sorry I didn't include the source code frown. Guess it slipped my mind. I was up at 2AM last night placing the files in a zip file and had my mirc directory open ontop of what I was doing. Guess it didn't cross my mind at the time. The source files are on my home computer where I made the dll. I'll place them in the zip tomorrow and reupload the zip file. I swear to you it's not a trojan or virus or anything like that.

And sorry I posted it here I just thought it would be interesting.


We don't just write the scripts, we put them to the test! (ScriptBusters)
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
well im interested in useing it so ill be waiting


http://MTec89Net.com
irc.freenode.net #MTec89Net
Joined: Sep 2003
Posts: 261
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
Hi, Last night I was thinking about how it returns the info with like a number then the | after, and I thought "why have a number? It would just be more scripting just to take it out for the results, so I changed that part of it". So now it returns with just a | sepearating the info. I uploaded a fresh version of it at the same url, with source code smile.


We don't just write the scripts, we put them to the test! (ScriptBusters)
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
up to how many files can be selected? it crashed when i select all of my music;/ (170 files,mostly .mp3 and a few .ogg) most are full albums too, so they are big.. if that matters

Last edited by MTec89; 23/12/03 06:28 PM.

http://MTec89Net.com
irc.freenode.net #MTec89Net
Joined: Sep 2003
Posts: 261
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
Whoa 170 songs? Oh sorry it made your mIRC crash frown. As i said it's a beta version. When I was testing it I only had a few mp3s to choose from on the computer I used to make it on. I haven't found out how to set a limit yet, i've read on here that the $msfile one for mirc 6.1 has a max of 950 characters and since I don't know that much about C++ i haven't found out how to limit it to just that. I want it to return something like $over if to many are selected just like 6.1's returns -1. If I can get this working then it would work as needed. Also hoping I can soon make it where the user can place their own *.*'s, button text and have it centered ontop.

But for now thanks for trying it out smile.


We don't just write the scripts, we put them to the test! (ScriptBusters)
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
i debugged it in MSVC++ and got this
Unhandled exception in mirc.exe (NTDLL.DLL): 0xc00000005: Access Violation


if that helps you fix this bug;)

edit:

and my alias' were

Code:
msdll return $+(",$mircdirdll\msfile.dll,")
msm return $dll($msdll,msfile,C:\music>Pick)

and i just hit //echo $msm and picked my songs..crash and burrn :tongue:

Last edited by MTec89; 23/12/03 06:42 PM.

http://MTec89Net.com
irc.freenode.net #MTec89Net
Joined: Sep 2003
Posts: 261
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
I have no idea what that means frown. Ahh you have MSVC++? smile maybe you can help me make it better or you can have and make it better smile. Are you a c++ programer?


We don't just write the scripts, we put them to the test! (ScriptBusters)
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
naw i dont know much C++ i am working on it.. i have a C++ book and stuff but i have only made a dll with icons, i havnt done any scripting


http://MTec89Net.com
irc.freenode.net #MTec89Net
Joined: Sep 2003
Posts: 261
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
Yeah me too that's uaualy the dlls i create, are icon files for my dialogs heh. Hrm. I'm going to continue to figure this thing out. It's like I can read the language but can't type it heh.


We don't just write the scripts, we put them to the test! (ScriptBusters)
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
well here i took some screenshots i hope very much that they can help ya
here and here

Last edited by MTec89; 23/12/03 06:56 PM.

http://MTec89Net.com
irc.freenode.net #MTec89Net
Joined: Sep 2003
Posts: 261
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
Cool thanks smile. I tested out how many I could select using the $msfile() identifier i supplyed and when id select about 13 rather lengthy files, it would return.
* /set: line too long (line 18, msfile.mrc)
Which I guess means its stopping it from allowing mirc to crash because of the (to many characters thing).

I tested mIRC 6.1x's $msfile() on the same mp3s i selected and it returns -1, and according to the help file that means to many where selected, IE which means the character length thing.

So I think for now, I'll add more coding to the msfile.mrc so that if this "* /set: line too long (line 18, msfile.mrc)" error occurs it means to many are selected so it should return -1 as the $msfile does in 6.1. And hopefully users (for now) will use the $msfile i supply so that it doesnt crash out mirc just yet. hrm, if i could find out how to make the dll return $over for a character length over 900 then it would prolly solve the crash and return as it needs to. Thanks for your help smile


We don't just write the scripts, we put them to the test! (ScriptBusters)
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
no problem, if u need more help i can try and help..


http://MTec89Net.com
irc.freenode.net #MTec89Net
Joined: Sep 2003
Posts: 261
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
Hi, yesterday evening with help from a friend who knows more about C++ than I do, we managed to solve (or I hope we did) the crash problem. By setting an if the results from the muilti select is greater than or equal too 900 to return $overlimit. Since mIRC has that 900 char barier I figured that's about all that can be done for that.

Also changed up how the results are returned: now if more than 1 file is selected it returns PATHNAME|FILE|FILE etc...

I've uploaded the changed dll to the same location if you want to check it out.


We don't just write the scripts, we put them to the test! (ScriptBusters)
Joined: Sep 2003
Posts: 261
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
Hrm perhaps $overlimit isn't a good thing to use, mIRC thinks its an identifier heh. May change it to just olimit (the text without a $).


We don't just write the scripts, we put them to the test! (ScriptBusters)
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
ok kool now it doesnt always crash but it does just exit mirc some times and the other times it crashes...
maybe some how set it into two or more lines to return echo set or whatever. can you help me parse the text it returns? i want to write it to a text file with full path to each song


http://MTec89Net.com
irc.freenode.net #MTec89Net
Joined: Sep 2003
Posts: 261
S
Fjord artisan
OP Offline
Fjord artisan
S
Joined: Sep 2003
Posts: 261
Ok changed it to returning olimit instead of $overlimit. Ill see waht I can do for helping you with what you need.


We don't just write the scripts, we put them to the test! (ScriptBusters)
Joined: Jul 2003
Posts: 742
Hoopy frood
Offline
Hoopy frood
Joined: Jul 2003
Posts: 742


ok it does the olimit thing some times when there isnt alot of files but when i still select all files it just silently exits mirc..no errors


http://MTec89Net.com
irc.freenode.net #MTec89Net
Page 1 of 2 1 2

Link Copied to Clipboard