SRL Archive - General

iScar


ruler

2006-12-04 06:29:53

This has a ways to go and i dont think it will be 100% compilant.

However with some thinkering some scripts may be able to made to work in the far far future.

Goals:
[x] Provide a way for some scar scripts to run on ibot.
[x] point functions that were in scar to the internal ibot functions
[x] get bitmapToString source

I want to make it clear the speeds of this will never beat ibot since this is intrepeted.

Writing scripts in java will ALWAYS be faster.

LOL at progess:

A working example

public class XY
begin
var x: integer;
var y: integer;

constructor XY();
begin
end;

procedure setX(xx: integer);
begin
x := xx;
end;

procedure setY(yy: integer);
begin
y := yy;
end;

procedure move();
begin
movemouse(x,y);
end;

function getX(): integer;
begin
result := x;
end;

function getY(): integer;
begin
result := y;
end;

end;

var p:array [1..3] of XY;
begin
writeln('start');
p[0]:= new XY();
p[0] .setX(250);
p[0] .setY(250);
p[0].move();
p[0] .setX(350);
p[0] .setY(350);
p[0].move();
writeln('end');
end.

Freddy1990

2006-12-04 10:12:35

I think you'd even be better off just making a convertor since scar scripts will never fully work on ibot

moparisthebest

2006-12-04 14:55:52

Definatly converter :)

Infantry001

2006-12-04 18:09:26

i third that converter idea :P

Ron

2006-12-05 14:25:05

The new name is iScar? I thought it was a whole new program. Dissappointed… I didn't know you meant iBot. :P

ruler

2006-12-05 14:47:37

geno post this elsewhere i thought i should put it here too:

From: GenoDemoN
Ruler made me put together a test script in scar to test some fundamentals and then also run it in ibot.
First here are the 2 scripts(Same operations just minor syntax changes so thy can run in their respective application:
iScar: http://rafb.net/paste/results/kwm5zJ74.html
Scar: http://rafb.net/paste/results/EvSJ4B62.html

Here are the numbers I got:
iScar (note last collum is millisecs on left 2nd to alst is seconds)
TOTAL: 391 milliseconds or .391 seconds

Scar
TOTAL: 3296 milliseconds or 3.296 seconds

I see a clear difference /discuss!