mIRC Home    About    Download    Register    News    Help

Print Thread
#95840 27/08/04 04:51 PM
Joined: Jun 2004
Posts: 87
B
Babel fish
OP Offline
Babel fish
B
Joined: Jun 2004
Posts: 87
ok so i have this for get and get 2 but u notice the .zip is now zip

%get yu-gi-oh - reshef of destruction (u) [-].zip 9.90 mb
%get2 yu-gi-oh - reshef of destruction (u) [-]zip

im using remove to remove the last size of the file, but i have to remove the . in the end to but that takes out all the .'s any way around this?

on *:dialog:easyaccess:sclick:4: {
/set %get $did(1).seltext
/set %get2 $remove(%get,0,1,2,3,4,5,6,7,8,9,kb,mb,gb,(for the . here)
/msg %nick get %get2
}

#95841 27/08/04 06:15 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788

on *:dialog:easyaccess:sclick:4: {
set %get $did(1).seltext
set %get2 $gettok(%get,$+(1-,$calc($numtok(%get,32) - 1)),32)
msg %nick get %get2
}


Will return everything but the last "word" seperated by a space, i.e.

A B C D E F G, becomes, A B C D E F.

Eamonn.

#95842 28/08/04 06:35 AM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
You can also use $deltok(%get,-1,32)

#95843 29/08/04 02:31 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Or in this case...
  • $deltok(%get,-2-,32)


Link Copied to Clipboard