SRL Archive - News and General

[TEMP] "repairing" scripts with "***40;" and so forth


Gu3st...

2011-05-29 17:24:34

Now with the vB bug and all, when people post scripts ( and ) will be replaced with ***40; and ***41; (Example). Run this script to "fix" the script.

1. Copy the script you want to run to clipboard (using CTRL + C and so on)
2. Run the script I've posted below.
3. Now the script you copied at 1. is now fixed and ready to use.

var
S : String;
I : Integer;

begin
S := GetClipBoard;
for I := 1 to 9001 do
S := Replace(S, '***' + ToStr(I) + ';', Chr(I), [rfReplaceAll]);
SetClipBoard(S);
end.

HarryJames

2011-05-29 19:15:00

You can also quote it in a new tab, and copy it from there :)

Markus

2011-05-30 04:49:24

Or use code-tags instead of Simba ones.

edit: Harryjames oldtimer wtf.

Gu3st...

2011-05-30 06:01:47

Yeah I just needed something to 'covert' the scripts fast and easy, and made this. Though it might be nice for others too :p

Echo_

2011-05-30 08:54:00

I didn't know about those clipboard functions, thanks for teaching me something ;)

HarryJames

2011-05-30 10:50:05

From: Markus
Or use code-tags instead of Simba ones.

edit: Harryjames oldtimer wtf.


I'm 05hartor, but I decided to change my name (:

Gu3st...

2011-05-30 16:11:59

From: Echo_
I didn't know about those clipboard functions, thanks for teaching me something ;)
Hahah :D The script wasn't completely useless then :)