mIRC Home    About    Download    Register    News    Help

Print Thread
#64323 17/12/03 06:30 PM
Joined: Sep 2003
Posts: 93
T
Talea Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Sep 2003
Posts: 93
I would like to know a simple F-Key command to run a file upon DCC Receive...

This is what I have so far in a seperate DCC status window
.Run Archive or Media Files: { run $$file="Which downloaded archive or media file do you want to run?" " $+ $getdir(*.mp3) $+ " }

What I want is the option to run a file upon receive with an f-key or if the file doesn't exist give me a window or echo that the file doesn't exist (or was possibly moved).

Thanks

Talea

#64324 17/12/03 08:31 PM
Joined: Dec 2003
Posts: 9
T
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
T
Joined: Dec 2003
Posts: 9
I'm not sure if you mean for a function key to run the last received file, but if so, you would do something like so:

First, set an alias like F5:

alias F5 {
run %last.dcc
}

Here's where %last.dcc is set:

on *:FILEGET:*:{
set %last.dcc $getdir $+ $filename
}

That's it. If you wanted it only to pay attention to mp3 files, like in your example, then change the second asterisk (*) to *.mp3, or whatever.

#64325 17/12/03 09:41 PM
Joined: Sep 2003
Posts: 93
T
Talea Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Sep 2003
Posts: 93
Thanks for your suggestion... your coding is pretty well what I wanted... I've modified it somewhat to suit my needs...
smile

This is what I used: (along with F3 to run file)
on *:FILERCVD:*.*:set %last.dcc $filename

It's so simple I could shoot myself shocked

Last edited by Talea; 17/12/03 09:55 PM.

Link Copied to Clipboard