Script Problem : download a user's file list ??

Which hub software is the best? Where can I find script XXX? Discuss it here...(no, this is not for advertising your hub...)

Moderator: Moderators

MangaDav
Posts: 9
Joined: 2003-04-09 10:05
Location: Bruxelles

Script Problem : download a user's file list ??

Post by MangaDav » 2003-08-07 12:38

In fact, I want to do a little script to download a user's file list to each op anytime someone (new nicknames only, allready known nicks won't be downloaded) connects to the hub.
How can I do this ? Is this possible ??
(I can do everything of this script except send the messages needed to download the filelist and I'm not sure it's really possible to do it :-/ )

Second question, how is it possible to make a search throught a script ?
I know that's possible, I've already seen scripts doing it but wasn't interrested in it... And now that I am, I don't remember the adress of the site where the script was :'(

Thanks a lot in advance ;-)

MangaDav

Darkwalker
Posts: 2
Joined: 2003-08-09 15:36

Post by Darkwalker » 2003-08-09 15:51

Sorry, but you cant have a script download a users filelist. You could use a client side program to download the lists and check them if thats what you want to do.. You can use DC++K or ragnorak to do this.

To do a search you just send data to the user or to the hub whichever you are searching.. such as
To an individual user.
curUser.SendData "$Search Hub:"+cstr(sBotName)+" F?F?0?1?"+cstr(badfile1)+"|"

To all users
colUsers.SendToAll "$Search Hub:"+cstr(sBotName)+" F?F?0?1?"+cstr(badfile1)+"|"

Then read the reply with
Sub DataArival (curUser, sCurData)
comm=left(sCurData,instr(1,sCurData," ")-1)
info=right(sCurData,len(sCurData)-instr(1,sCurData,""))

If left(comm,3)="$SR" then
This is not working code.. just parts I just copied outta some script. You can find search in most scripts.. check out yamb, general bot, or dirtyfingers or loads of others..

Who is online

Users browsing this forum: Google [Bot] and 0 guests