SRL Archive - Outdated Tutorials

Alert() ~ SCAR 3.20


Rich

2009-07-05 16:45:13

Well, this is more a "let you know" than a tutorial. It's about a new function in SCAR 3.20, and that is Alert().

Those of you using 3.20 would have noticed this:



As you press PLAY. Well, now you can create your own alert boxes, using Alert. It is used like this:
program New;
begin
Alert('Alert()');
end.
This would show:



This function is especially handy for SMART users. If you are on your computer, and want it to alert you when you encounter a random event silently, then you could do:
program New;
begin
Alert('RANDOM EVENT!');
end.

Of course, it would have to be used only when it finds a random event. This can be implemented by modifying you AntiRandoms.scar. Anyway, this would output:



Hopefully, this "let you know" helped you out. Please post what you think of it, and how it can be improved.

Thanks,
Richard

Awkwardsaw

2009-07-06 01:26:07

i was just looking around at that procedure :D

i think its a nice little "let you know" tut, and procedure :P

noidea

2009-07-06 04:00:14

it a large tut for such a simple procedure.
Good job :)

Rich

2009-07-06 10:33:58

From: akwardsaw
i was just looking around at that procedure :D

i think its a nice little "let you know" tut, and procedure :P


Thanks!

From: noidea
it a large tut for such a simple procedure.
Good job :)


Most of the room is taken by the pics and SCAR code boxes :p.

Thanks guys,
Richard

ShowerThoughts

2009-07-06 14:33:49

if FindNormalRandoms then Alert('Good job, nice tut')

Rich

2009-07-06 20:04:12

if (HermenNiceComment = True) then
Alert('Thanks');

Richard

EvilChicken!

2009-07-07 04:03:25

Well explained, good job on this one.

++.

ian.

2009-07-07 04:41:41

Is there any way to change the icon for the Alert thing? :)

Rich

2009-07-07 11:03:14

From: 99_ aka ian.
Is there any way to change the icon for the Alert thing? :)


From the pencil and paper? I don't think so. I'll ask Freddy of his forums.

Da 0wner

2009-07-07 11:18:59

From: R1ch
if (HermenNiceComment = True) then
Alert('Thanks');

Richard


if (HermenNiceComment = True) then
Alert('Thanks');
->
if (HermenNiceComment) then
Alert('Thanks');

The Little

2009-07-07 17:09:23

Never knew about that! thanks!

Is it possible to add your own image instead of default one?

Rich

2009-07-07 19:14:31

From: Da 0wner

if (HermenNiceComment = True) then
Alert('Thanks');
->
if (HermenNiceComment) then
Alert('Thanks');


:p

From: The Little
Never knew about that! thanks!

Is it possible to add your own image instead of default one?


I'll see if Freddy has replied on his forums, then post back here.

EDIT: Nope, no one has replied yet.

EvilChicken!

2009-07-08 02:09:06

From: R1ch
I'll see if Freddy has replied on his forums, then post back here.

EDIT: Nope, no one has replied yet.


I don't think it's possible as of current SCAR version, but I really do believe that it would be fairly easy to give SCAR the ability to add a custom bitmap to the Alert() procedure. I think Freddy could implement it with ease if he bothered to/saw usefulness in it.

I helped Freddy paying for this component, btw. :rolleyes:

Home

2009-07-08 02:21:35

This might be useful to someone :)



[PHP]procedure OnRandomFind;
begin
Alert('Random!');
end;

SRL_Procs[srl_OnFindRandom] := @OnRandomFind;[/PHP]

And cool "Tut" :)

~Home

senrath

2009-07-08 02:38:59

From: Home
This might be useful to someone :)



[PHP]procedure OnRandomFind;
begin
Alert('Random!');
end;

SRL_Procs[srl_OnFindRandom] := @OnRandomFind;[/PHP]

And cool "Tut" :)

~Home

I already use that in my Wine Telegrabber :P

Rich

2009-07-08 10:42:53

From: EvilChicken!
I don't think it's possible as of current SCAR version, but I really do believe that it would be fairly easy to give SCAR the ability to add a custom bitmap to the Alert() procedure. I think Freddy could implement it with ease if he bothered to/saw usefulness in it.

I helped Freddy paying for this component, btw. :rolleyes:


Hmm, do you think you could contact him about this as a suggestion for the upcoming version of SCAR?

From: Home
This might be useful to someone :)

[PHP]procedure OnRandomFind;
begin
Alert('Random!');
end;

SRL_Procs[srl_OnFindRandom] := @OnRandomFind;[/PHP]

And cool "Tut" :)

~Home


Thanks.

From: senrath
I already use that in my Wine Telegrabber :P


:norris:

EDIT:

Freddy's response to the question about the picture:
No it's not possible to change this, the picture indicates that it's either a script or program alert.