Convivea

Bit Che => Scripts & Development => Topic started by: Bovski on June 11, 2008, 02:21:32 am

Title: Scripting Feature Request
Post by: Bovski on June 11, 2008, 02:21:32 am
2 Commands to strip <*> would make it easy when you just want the text from a field.

Some times Seeders & Leeches have all sorts of different formatting depending on the numbers you have to parse your way through all this formatting just to get the plain text that's displayed some times it's easy as you can missparse the results for 0 as Bit Che will leave it as zero but with some of the more complex ones its a pain.

Some Examples of usage
Code: [Select]
t=array(q,10)
n=sv(t)

Code: [Select]
t=array(q,10)
5=ss(t)

Or even

Code: [Select]
n=sv(10)

Code: [Select]
5=ss(10)

Should be easy to determine if it's a a number or variable.

Wouldn't half simplify scripting Seeders, Leeches & size fields.
Title: Re: Scripting Feature Request
Post by: chip! on June 11, 2008, 11:36:45 am
so you mean remove all html formatting from the given string?
Title: Re: Scripting Feature Request
Post by: Bovski on June 11, 2008, 12:09:33 pm
yep <> and everything between yes I know it seems lazy but having it in compiled code should make the job much quicker than several lines of script.

Though a "Remove All Between" command would probably be of more use so you could then do

Code: [Select]
t=rabv(t,<,>)

Code: [Select]
5=rabs(t,<,>)

or even if you have those stupid mouseover things that are such a pain to parse like here

Code: [Select]
t=rabv(t,onmouseover="return overlib(',onmouseout="return nd();")

Code: [Select]
5=rabs(t,onmouseover="return overlib(',onmouseout="return nd();")