SRL Archive - S.M.A.R.T. Tutorials and Instructions.

Multiple Smarts, Without multiple scars!


Killerdou

2008-01-06 08:19:32

First of all, you will need multiple plugins, so for example smart.dll and smart1.dll(you can just copy your current one.
Then you need to allow api calls(script>>>allow api calls). Now, you need to do an api call(why else would we allow them). Here is what you need to do:

procedure SmartSetup( w : string; d, s : boolean); external '_setup@12@smart.dll stdcall';
Now, in the next script you want to run, you need to use

procedure SmartSetup( w : string; d, si : boolean); external '_setup@12@smart1.dll stdcall';
Obviously if your .dlls are called differently, you have to change the filename after the second @. I am not sure if scar api calls can handle spaces in the name, but you can try it. This should make using multiple smarts a whole lot easier:).

If there are any objections against this post, please tell me and i'll remove it.

Have fun autoing,


Killerdou

Markus

2008-01-06 08:43:59

Works.
Reason normally it doesnt work is because the JVM gets confused with the plugin.

Rikje

2008-01-06 11:18:46

yeaj for killerdou! you just sloved a pretty annoying problem. :)

Killerdou

2008-01-06 11:44:10

mastaraymond just pointed out a kind of problem, you'd need to import all the functions…

n3ss3s

2008-01-06 11:50:42

mastaraymond just pointed out a kind of problem, you'd need to import all the functions…


Okay, umm would you also have to call the SetTargetDC(SmartGetDC) many times?

Killerdou

2008-01-06 11:55:05

thats complete gibberish XD, you still need multiple scars, you just dont have to install multiple scars(only multiple plugins), anyways, it needs to import all the functions smart uses(from the right plugin) if i dont use apicalls it will think it has to use the last(or first not sure) plugin which is loaded.

BenLand100

2008-01-06 13:52:41

From: Killerdou
thats complete gibberish XD, you still need multiple scars, you just dont have to install multiple scars(only multiple plugins), anyways, it needs to import all the functions smart uses(from the right plugin) if i dont use apicalls it will think it has to use the last(or first not sure) plugin which is loaded.

Hence why you should not do it this way.

R0b0t1

2008-01-06 14:46:31

I don't think you could do this unless you could make a script split its time between to RS screens. It would also mean lots of setting the target's DC…


I still haven't figured out how you get the number after the first @ sign, on how you showed me how to make a def/export to delphi… :p

Killerdou

2008-01-06 14:48:56

no one understands it lol, this way you dont have to install multiple scars. You can open one scar, use smart.dll as the plugin and another scar(same install) could use smart1.dll…

R0b0t1

2008-01-06 15:34:27

Oh… That makes more sense. LMAO IRL.

BenLand100

2008-01-06 18:03:04

From: Killerdou
no one understands it lol, this way you dont have to install multiple scars. You can open one scar, use smart.dll as the plugin and another scar(same install) could use smart1.dll…

Its just the number of bytes in the args :duh:

R0b0t1

2008-01-06 20:52:41

Rofl, wrong quote ftw?

Thanks for replying to my PM though, cleared up some things.

Killerdou

2008-01-07 00:58:47

benland, i ment that no one understands how to use this, i know what the @# means XD

Markus

2008-01-07 13:12:26

I know how to use it.