SRL Archive - SRL Archives

Smart


Shuttleu

2009-06-04 22:14:28

how about changing it to this?
procedure SmartSetupEx(worldnumber: integer; members, signed, superdetail: boolean);
var
prefix: string;
begin
prefix := ReadINI('World' + IntToStr(worldnumber), 'Prefix', AppPath + 'includes\SRL\SRL\misc\worlds.ini');
if(prefix = '')then
begin
writeln('Invalid world number or corrupted world list. Please review your settings');
TerminateScript;
end;
SmartSetup('http://'+prefix+'.runescape.com/', 'plugin.js?param=o0,a' + IntToStr((Integer(not(Signed)) + 1) * Integer(not((SuperDetail and Signed)))) + ',m' + IntToStr(Integer(Members)));
SetTargetDC(SmartGetDC);
end;
that way you wont have to put SetTargetDC(SmartGetDC);
because if your like me then you will keep forgeting what it is you have to put and you keep looking in a script just to findout what it is you have to put

~shut

Home

2009-06-04 22:17:22

Well i would say no to this :) Because most people do still remember :D


~Home

marpis

2009-06-05 00:18:13

From: Home
Well i would say no to this :) Because most people do still remember :D


~Home



? no sense there
i say yes

Gu3st...

2009-06-05 00:28:57

From: marpis
? no sense there
i say yes

I agree, no sense at all :p

I say yes too

Home

2009-06-05 01:13:04

No one understands me… Well what i was saysing that, still most people understands / Remembers to add those lines :)


~Home

So i think it's useless.. ( Everyone hates me :) )

Gu3st...

2009-06-05 02:08:14

From: Home
No one understands me… Well what i was saysing that, still most people understands / Remembers to add those lines :)

Well.. But now they dont have to do so anymore, because the function does it automaticly ;) and i love you btw

Shuttleu

2009-06-05 03:09:37

From: Zyt3x
Well.. But now they dont have to do so anymore, because the function does it automaticly ;) and i love you btw


me or home?

~shut

Da 0wner

2009-06-05 03:22:37

He loves Home and I. Probably also you :p.

Naike

2009-06-05 11:24:30

What if you have a bad computer that needs a Wait between the launch of S.M.A.R.T
and the SetTargetDC(SmartGetDC);?

I say no, for that simple reason.

Da 0wner

2009-06-05 12:00:40

Smart setup should wait until you are ready…

Also N1ke, it is the exact same as
SmartSetupEx(blah blah blah);
SetTargetDC(SmartGetDC);

ian.

2009-06-05 12:01:50

Pretty sure he's saying people sometimes add the Wait(Whatever); until SmartGetColors(Whatever);.. (Sorry, I never use that way so idk the params/function =X haha)

Home

2009-06-05 14:03:25

Well i do it this way:

  SmartSetupEx(World, False, True, False);
while not SmartActive do wait(100);


~Home

Gu3st...

2009-06-05 15:30:12

From: Da 0wner
He loves Home and I. Probably also you :p.

Heh, I love anyone that doesn't act as complete idiots ;)
But I love some guys more than others of course.
procedure SmartSetupEx(worldnumber: integer; members, signed, superdetail: boolean);
var
prefix: string;
begin
prefix := ReadINI('World' + IntToStr(worldnumber), 'Prefix', AppPath + 'includes\SRL\SRL\misc\worlds.ini');
if(prefix = '')then
begin
writeln('Invalid world number or corrupted world list. Please review your settings');
TerminateScript;
end;
SmartSetup('http://'+prefix+'.runescape.com/', 'plugin.js?param=o0,a' + IntToStr((Integer(not(Signed)) + 1) * Integer(not((SuperDetail and Signed)))) + ',m' + IntToStr(Integer(Members)));
while not SmartActive do wait(100);
SetTargetDC(SmartGetDC);
end;

Nava2

2009-06-05 16:30:13

Hmm, I don't think its a good idea to add it.

People should know how to use SetTarget because of the other uses for it. Bitmaps etc.

Idk, I'm not sure I agree with this..

Gu3st...

2009-06-05 16:37:25

From: Nava2
Hmm, I don't think its a good idea to add it.

People should know how to use SetTarget because of the other uses for it. Bitmaps etc.

Idk, I'm not sure I agree with this..

Uuuh.. What? Bitmaps?
I know how to do it for smart but I didn't know I could do it with bitmap, and what is the use?

Bobarkinator

2009-06-05 22:03:31

From: Zyt3x
Uuuh.. What? Bitmaps?
I know how to do it for smart but I didn't know I could do it with bitmap, and what is the use?


You can find an area of the main screen, save it in a bitmap, set the target dc to that bitmap and scar will only search the area of that bitmap.

Also, I never call SetTargetDC for smart, seriously all I call is SmartSetup then start.

MylesMadness

2009-06-06 19:08:33

From: Bobarkinator
You can find an area of the main screen, save it in a bitmap, set the target dc to that bitmap and scar will only search the area of that bitmap.

Also, I never call SetTargetDC for smart, seriously all I call is SmartSetup then start.
And it works? when ever I do it just closes smart…