SRL Archive - Help and Support

API's


t3hl33tn00b

2007-10-24 22:06:40

is there a way we can utilize API's into a scar script?

Bobarkinator

2007-10-24 22:33:53

Script > Allow API calls?

t3hl33tn00b

2007-10-25 06:45:34

i know that but what is the procedure for calling them into scar?

Smartzkid

2007-10-25 06:50:05

function APICall(param1: Integer; param2: String):LongInt; external 'APICall@user32.dll stdcall';

t3hl33tn00b

2007-10-25 09:28:05

thank you so much :D

R0b0t1

2007-10-25 12:03:22

Ahhha!


program New;
function GetTickCount:LongInt; external 'GetTickCount@kernel32.dll stdcall';

begin
WriteLn(IntToStr(GetTickCount));
end.

mastaraymond

2007-10-25 15:50:41

Sorry for spamming ^^, i made a 'last post getter' using API calls:

http://www.villavu.com/forum/showthread.php?t=17223