Shoutbox

File Shareing Plugin (in development) - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Forum: Plug-Ins (/forumdisplay.php?fid=28)
+------ Thread: File Shareing Plugin (in development) (/showthread.php?tid=17918)

File Shareing Plugin (in development) by Pleh on 11-09-2003 at 10:59 AM

The File Shareing Plugin (By Pleh)

I am currently working on a plugin that will allow users to automate the sharing of certain files in a folder specified on the users PC. This will allow MSN to function as a p2p program as well as the best chat program in the world.

Example 1 Requesting a File List

To download files from someone first you both need to have the plugin installed. Next you will request a file list from the other person to see what files they are shareing. This is done by using the command /xrlist this command tells the other persons plugin to reply with a list of the contents of the shared folder.

Example 2 Requesting a File

After you have recieved a file list you can choose to download any file from the list. To do this use the /xrfile <File Path> command for example if they are shareing C:\My Shared Folder and they have the file example.exe in it you would use

/xrfile C:\My Shared Folder\example.exe

This command tells the other persons plugin to reply by sending the file you requested. This works both ways (you can download from people and people can download from you, if you dont want people downloading from you just specify a folder that doesn't exist to share)

Bugs so far

As Mnjul mentioned in another thread there is a problem with the way plus's contact name works which prevents us from telling our plugins not to respond to themselves thus giving us an "echo" bug. If anyone knows a way around this please can you tell me.

Things in Development

*Edit* Added the ability to choose the shared folder (having some registry problems in VB6, Help appreciated)
*Edit* Added an /xfsoff and /xfson function set


And thats about it, if you like the idea of my plugin please feel free to post comments or if you have any ideas on how to fix the bugs or add better functionality please post also. Any and all feedback is appreciated :)


RE: File Shareing Plugin (in development) by Leif on 11-09-2003 at 11:59 AM

Sounds like a useful plug-in to me.
What would be the differences between your plug-in and the existing Share files command?
Advantages? (other than that the current command is limited to ten files) - Security? Easy of use?
Disadvantages? - Security? Easy of use?


RE: File Shareing Plugin (in development) by Pleh on 11-09-2003 at 01:19 PM

I originally make this plugin so that i could download files from my home computer at work (i leave my PC on 24/7 with msn open) without having to use some relativly complicated remote programs or starting a ftp server. To do this i needed a plugin that would automatically send a file when sent a variable command (filename) and not one that you had to specify before hand. This way i set my shared folder of my plugin to be the same as my eMule and K-Lite Downloads Folder and when ever i finnish a download it will be ready to access from work. The other reason i made it was because me and a few mates download like whores and often end up downloading the same files (wasteing bandwidth) so with this we can check eachothers download folders so we wont end up doing it.

Advantages
You dont have to send people files, they can ask for them.
You can share as much or as little as you want

Disadvantages
Security As this plugin works currently people can download any file from your computer providing they know the file name and path. ( i want to add a password option in later releases)
The average "chatter" will probably not be able to use this plugin (but then again they probably wont even know what plus is, nor will they ever want to use this plugin)


RE: File Shareing Plugin (in development) by Pleh on 11-09-2003 at 01:49 PM

OK i now have an on and off feature. i used /xron and /xroff to keep all my functions the same. now just for the registry thing.

Quick question
Is there a way to get your plugin to open a form? when ever i try it just says function not recognised. Thanks :)


RE: File Shareing Plugin (in development) by Leif on 11-09-2003 at 02:32 PM

QUOTE: I originally make this plugin so that i could download files from my home computer at work END

How very splendid! Never thought of that! How useful!! Thanks! But I'll have to login with another user name, won't I? So I just have to get one more account, get your plug-in and then I'll have access to (part of) my home computer. Way cooool!
When????


RE: File Shareing Plugin (in development) by Dempsey on 11-09-2003 at 02:57 PM

wot problems are you having with the registry?  and yes you can show a form, what language are you using? 


RE: File Shareing Plugin (in development) by Pleh on 11-09-2003 at 03:13 PM

thanks for all the interest, i have been workin on it all day and its working great so far, i have just fixed the "echo bug" with the help of DJMystic, thanks man, and the on / off functions are working great too, all i need to do now is make an options screen for when you type /xroptions. i have been having troubble getting any registry editing working with VB6 because i usually use .Net and it differs slightly, and the loading of a form from a command i need to get fixed too. if anyone wants to try out a demo of what i have done so far just ask and i will send you a copy of what i have done (with C:\ as your shared folder untill i add the options page)

Thanks again for all your help :)


RE: File Shareing Plugin (in development) by Dempsey on 11-09-2003 at 03:19 PM

to show a form in vb use form1.show 1 and obviously chnage the name of the form.  And i have a good module with registry functions which i can send you if you want.  And i'll try it as it is.


RE: File Shareing Plugin (in development) by Pleh on 11-09-2003 at 03:46 PM

cool i could use a registry example, i have also made a beta release of this plugin if any one wants it.

i was using form1.visible = true thats where i was going wrong, lol dont i look silly now.

i will add you to my contacts list so we can talk about that module
I assume you use msn? lol

*EDIT* Beta Link Removed *EDIT*


RE: File Shareing Plugin (in development) by Leif on 11-09-2003 at 04:25 PM

1.    Close MSN Messenger and Messenger Plus 2
NP

2.    Put PlehFileSharingVB.dll in your plus 2 plugins folder
    eg. C:\Program Files\Messenger Plus! 2\Plugins
Easy (but C:\Program\... on my machine)

3.    Register the dll with regsvr32 by using your run command from the start menu
    eg. Paste the following line in the run box
    regsvr32 "C:\Program Files\Messenger Plus! 2\Plugins\PlehFileSharingVB.dll"
OK (but C:\Program\... on my machine)

4.    Use Pleh File Shareing :)
:(  It does not appear in the menu. What did I do wrong?

I even rebooted to try to make it stick.


RE: File Shareing Plugin (in development) by Pleh on 11-09-2003 at 04:27 PM

did you paste all of this line...

regsvr32 "C:\Program Files\Messenger Plus! 2\Plugins\PlehFileSharingVB.dll"

if you did it correctly it will come up with a message box that says DllRegister Server in <your app directory> succeeded

id it doesn't then you must have typed it wrong, doubble check it and try again


RE: RE: File Shareing Plugin (in development) by Leif on 11-09-2003 at 04:39 PM

quote:
Originally posted by Pleh
did you paste all of this line...

regsvr32 "C:\Program Files\Messenger Plus! 2\Plugins\PlehFileSharingVB.dll"

Nope. I edited it - Changed Program Files to just Files (Swedish OS)

quote:
if you did it correctly it will come up with a message box that says DllRegister Server in <your app directory> succeeded

id it doesn't then you must have typed it wrong, doubble check it and try again

Just double checked ... See pic
[Image: pleh.jpg]

RE: File Shareing Plugin (in development) by dotNorma on 11-09-2003 at 05:49 PM

Ok I installed it and it is running great but how do you share a folder?


RE: File Shareing Plugin (in development) by Pleh on 11-09-2003 at 06:17 PM

that was the beta of my plugin which i said befor that you cant specify a folder, it only shares C:\ , i am working on the options screen now so soon you should be able to choose a folder and it will save it in the registry.

Leif that should be working, is the plugins box still greyed out?


RE: File Shareing Plugin (in development) by dotNorma on 11-09-2003 at 06:21 PM

O_O..... Im not for the idea that people have acess to my whole C Drive :dodgy: :P


RE: RE: File Shareing Plugin (in development) by Leif on 11-09-2003 at 06:39 PM

quote:
Originally posted by Pleh
Leif that should be working, is the plugins box still greyed out?

Well, not greyed out since I have other plug-ins. It's just not there! :(
RE: File Shareing Plugin (in development) by Pleh on 11-09-2003 at 07:04 PM

hmm, how many other plugins do you have?

Oh yeah and i am ready for an official release now, with an options page!!!!

use /xroptions to see it, i will be uploading it in a few mins, im going to try and get an installer for it


RE: RE: File Shareing Plugin (in development) by Leif on 11-09-2003 at 08:01 PM

quote:
Originally posted by Pleh
hmm, how many other plugins do you have?

2
RE: File Shareing Plugin (in development) by Pleh on 11-09-2003 at 08:17 PM

Well here you go after hours of beta testing with Dempsey. The 1.0 Version of Pleh File Sharing. I hope you enjoy using it :)


RE: RE: File Shareing Plugin (in development) by Leif on 11-09-2003 at 08:32 PM

quote:
Originally posted by Pleh
Well here you go after hours of beta testing with Dempsey.

LOL --> ROTFL
RE: File Shareing Plugin (in development) by speedy_kevin on 02-09-2004 at 05:42 PM

All I get is a *.* message :S What's wrong with that?