SRL Archive - S.M.A.R.T. General and Q/A.

Cancelled on request


Harry

2007-11-24 21:56:33

I used SMART.scar that Markus had in a tut, with {$define smart} as the first line. Well apparentally, that messed up my SCAR.exe or something, cause even if I remove SMART, I get this in the debug anytime I try to run a SMART script:
Cancelled on request

it is really making me mad, I don't know why it does that.

If I rename my SMART.scar to something else, and change the {.include Smart.scar} to something like {.include Smarty.scar} (and also rename my Smart.scar) it works.

Edit: I also wanted to ask if I was to reinstally SCAR's exe, would it "undefine" smart? So I can use the {.include SMART.scar} again? :rolleyes:

n3ss3s

2007-11-25 11:21:45

Ofcourse it would -.-

Harry

2007-11-25 11:26:14

Well, I don't know Delphi, so what does {$define smart} do, and what did it do to the SCAR exe?

R0b0t1

2007-11-25 11:31:45

{$ndefine smart}

Timer

2007-11-25 11:33:00

IDK but if u ever run a non-smart script it wont work, unless you delete the SMART plugin because it'll override the Movemouse procedures/functions and would act like smart..

Harry

2007-11-25 15:18:06

From: R0b0t1
{$ndefine smart}


Hmm. Still didn't help :|

Infantry001

2007-11-25 15:59:45

I think {$Define SMART} is kind of like a boolean, except it is loaded before compiling. If you defined it, the {$IfDef SMART} will compile.

Smartzkid

2007-11-25 22:07:45

{$undefine smart} afaik

Bobarkinator

2007-11-25 22:15:17

procedure ScriptTerminate;
begin
{$IfDef SMART}
{$UnDefine SMART}
{$EndIf}
end;

Would that work? BTW, TerminateScript is the procedure SCAR calls when it stops a script, at least, that's what The Claw said.

The Claw

2007-11-25 22:21:23

ScriptTerminate, its the other way around :)

Bobarkinator

2007-11-25 22:22:09

From: The Claw
ScriptTerminate, its the other way around :)


My bad, I was thinking of the SRL procedure.

Edit: But if you overwrite the ScriptTerminate procedure then doesn't that mean the script won't stop?

The Claw

2007-11-25 22:35:18

Nope, ScriptTerminate is just something which is called when the script is stopped. It doesnt stop the script by itself, or anything. Its just an empty procedure usually I think. TerminateScript is the procedure which stops the script, and if you can find a way to overwrite that then yea the script probably wouldnt stop