Sax
2013-01-17 15:51:44
1. What is the predefined MouseSpeed?
2. how the function AddOnTerminate works?
Thanks :D
2. how the function AddOnTerminate works?
Thanks :D
2013-01-17 15:51:44
2013-01-17 16:01:11
procedure printMe;
begin
WriteLn('Printed!');
end;
...
AddOnTerminate('printMe');
2013-01-17 16:05:48
2013-01-17 16:06:58
2013-01-17 16:07:07
2013-01-17 16:17:18
2013-01-17 16:41:58
procedure DeclareDTMs;
begin
DTMa:= DtmFromString('fhdwuiafghiaoh');
DTMb:= DtmFromString('fhdwwfafwauiafghiaoh');
DTMc:= DtmFromString('fhdwuiafghiagawgwagasoh');
end;
procedure FreeMyDTMs;
begin
Free(DTMa);
Free(DTMb);
Free(DTMc);
end;
begin
SetupSRL;
DeclareDTMs;
AddOnTerminate('FreeMyDTMs');//Notice the name of the method is in quotation marks.
repeat
dostuff;
until(ReasonToEnd);
end.
2013-01-18 18:50:46
2013-01-18 19:57:21
From: Kyle Undefined
If the script errors out, then the AddOnTerminate method will not be called. Only if the script completes, or is manually turned off, with that be called.
2013-01-18 19:59:42
From: Sin
18 is default iirc.
From: Nirvana
I found at srl.simba I guess it is 15
2013-01-18 20:08:30
From: BMWxi
If I call TerminateScript that would count as completing right?
2013-01-18 20:25:45
From: i luffs yeww
Yes.