mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 208
H
Hrung Offline OP
Fjord artisan
OP Offline
Fjord artisan
H
Joined: Dec 2002
Posts: 208
I would like a .prop for $get and $send that would allow me to do something like:

/close $+(-g,$get(-1).something) $nick

in some on filercvd, or other dcc-related event. If this already exists, please tell me what it is and proceed to ignore me. Thanks.


If I knew now what I will know then... maybe things will have been different...
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Theres not a builtin one you would have to code an alias.

alias getid {
var %i = $get($1,0)
while (%i) {
if ($get($1,%i).hwnd == $2) { return %i }
dec %i
}
}

Something along those lines, loops all of $1's open GET windows and checks for the .hwnd id, if thats it, returns %i.
An example;

on *:filercvd:*:{
echo -s - $nick $+ 's $getid($nick,$get(-1).hwnd) $+ th Window.
}

Eamonn.

Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Code:
on *:filercvd:*:{ 
  window -c $+("Get $get(-1) $get(-1).file,")  
}

Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
Since previous threads have brought up issues with longfile names and /window -c it wouldnt always work if theres a long filename involved.

Related, thread.

Eamonn.


Link Copied to Clipboard