Popup message if random
XabdullahX
2009-06-12 22:21:08
Hi
I will make it short:
I dont know if freddy, or i can do it my self (or devs), but i think it would be great if a popup, like the one that says sucessefully compiled and executed (In the new scar 3.20)
It should be so, when a random occur, i will tell me. Cause sometimes, i auto, while i am working on the comp, so instead it say that in the debug window, it will popup, and i will do the random manually (since they arent working).
- That was short :D
Dynamite
2009-06-12 22:22:15
+1 good idea
T~M
Nava2
2009-06-12 22:23:02
No. It doesn't allow for backwards compatibility.
ShowerThoughts
2009-06-12 22:24:56
Ehm, make a POPUPWINDOW('MESSAGE HERE'); function. shouldn't be to hard.
nielsie95
2009-06-12 22:26:26
From: Hermen
Ehm, make a POPUPWINDOW('MESSAGE HERE'); function. shouldn't be to hard.
He's talking about Alert().
ShowerThoughts
2009-06-12 22:27:00
Right lower corner?
Okay I tested it, why do I never know such things like this… I read the release threads but I never knew this…
XabdullahX
2009-06-12 22:30:15
Huh ?
Its a function?
Testing immedietly
I mean this:

Btw. Wow!, already 5 replies
——————–EDIT———————–
From: Hermen
Ehm, make a POPUPWINDOW('MESSAGE HERE'); function. shouldn't be to hard.
PopUpWindow? that doesnt exist?
From: nielsie95
He's talking about Alert().
Oh, cool ! Thats it!
———————————————
Well, i will put it in my srl
ShowerThoughts
2009-06-12 22:33:28
Yeah pretty cool.
Shuttleu
2009-06-12 22:41:00
replace your antirandoms.scar with this one
~shut
XabdullahX
2009-06-12 22:50:20
From: Shuttleu
replace your antirandoms.scar with this one
~shut
Thx, already did the same, almost
But thx for sharing :D
Cazax
2009-06-12 23:45:47
The problem is that Alert is only in SCAR 3.20 and not in 3.15. Many people still use it so SRL would only work with the newest versions.
Lance
2009-06-13 00:50:16
just make a forum that has editable text and then put it all under a function like..
PopupWindow('message');
and when you call the function it makes the forum pop up with the message
Da 0wner
2009-06-13 00:52:09
Alert works fine. Only is in SCAR 3.20+ though.
Edit: Sorry, didn't read whole thread.
However, you can use compiler directives to check what version of SCAR ($IFDEF SCAR320) you are using and use alert and if you are not using SCAR 3.20 then it will not do that and cause an error.
From: lancerawks
just make a forum that has editable text and then put it all under a function like..
PopupWindow('message');
and when you call the function it makes the forum pop up with the message
You mean form right?
A forum in a script? That would be epic.
Nava2
2009-06-13 01:13:17
I still don't think this is really necessary.
Da 0wner
2009-06-13 01:40:31
A disguise at the most should work.
Shuttleu
2009-06-13 01:42:26
From: Nava2
I still don't think this is really necessary.
i do
if people like to auto and work on their computer at the same time then they will easily be able to tell when there is a random
which then means they can watch it and see if anything goes wrong
if something does then they can pause/stop the script and do it themselfs
so imo it is a good idea
~shut
PlaySound anyone?
PlaySound('Tada.wav');
Or use a compiler directive (like wizzup? used in his multi miner) and make Microsoft SAM say 'you have a random' :)
Waddo
2009-06-13 02:01:08
yes I've used play sound before :p is funny shits you up tho sometimes at night when your reading somehing scars minimized no sound then it makes a big noise :L
XabdullahX
2009-06-13 17:18:17
From: Da 0wner
A disguise at the most should work.
Ya, would do it, but Alert(''); Normally recieves more attention
From: NaumanAkhlaQ
PlaySound anyone?
PlaySound('Tada.wav');
Or use a compiler directive (like wizzup? used in his multi miner) and make Microsoft SAM say 'you have a random' :)
Well, I dunno :/
I usually dont have sound on when working on my comp :)
Sir R. M8gic1an
2009-06-13 19:35:16
procedure OnRandomFind;
begin
Alert('random!');
end;
SRL_Procs[srl_OnFindRandom] := @OnRandomFind;
gotta be creative people ;)
~RM
Da 0wner
2009-06-14 01:30:08
Still doesn't show you what random it is. Maybe you could make some function return what random was found or something.
Shuttleu
2009-06-14 01:51:12
From: Rasta Magician
procedure OnRandomFind;
begin
Alert('random!');
end;
SRL_Procs[srl_OnFindRandom] := @OnRandomFind;
gotta be creative people ;)
~RM
procedure OnRandomFind(RandomName: string);
begin
Alert('random '+RandomName+'!!!');
end;
SRL_Procs[srl_OnFindRandom] := @OnRandomFind(Capitalize(Randoms[I].Name));
how bout this?
~shut
(RandomName: Boolean);
?
Shouldn't that be a string :p
Shuttleu
2009-06-14 04:20:05
yea string
sowwy :s
~shut
Mr.Klean
2009-06-14 04:56:57
A really cool idea would be a popup box when you get a random that asks you if you want to solve it or if scar should attempt to solve it. Make it auto timeout incase you aren't at the computer.
BobboHobbo
2009-06-14 06:58:08
From: Mr.Klean
A really cool idea would be a popup box when you get a random that asks you if you want to solve it or if scar should attempt to solve it. Make it auto timeout incase you aren't at the computer.
Ye that would be a pretty usefull idea in some cases.
XabdullahX
2009-06-14 07:25:08
From: Mr.Klean
A really cool idea would be a popup box when you get a random that asks you if you want to solve it or if scar should attempt to solve it. Make it auto timeout incase you aren't at the computer.
Yea, i support that :)
Sir R. M8gic1an
2009-06-14 14:47:32
From: Shuttleu
procedure OnRandomFind(RandomName: string);
begin
Alert('random '+RandomName+'!!!');
end;
SRL_Procs[srl_OnFindRandom] := @OnRandomFind(Capitalize(Randoms[I].Name));
how bout this?
~shut
no, the proc can't have any parameters. however:
Procedure OnRandomFind;
begin
Alert('random : '+Players[CurrentPlayer].Rand);
end;
but if you intend to solve it manually, i don't see why you'd need the lart to tell you which one it is :p
~RM
Quickmarch
2009-06-14 15:44:28
A compiler directive would sort out compatibility issues.
Da 0wner
2009-06-14 16:07:23
As I have already said Quickmarch :rolleyes:.
Edit: RM, it can have a param just do
SRL_OnRandomFind : procedure (s : string);
:D. But it would have to be a seperate procedure :<.
Naike
2009-06-15 21:53:39
burnout
2009-08-03 04:02:32
From: XabdullahX
Hi
I will make it short:
I dont know if freddy, or i can do it my self (or devs), but i think it would be great if a popup, like the one that says sucessefully compiled and executed (In the new scar 3.20)
It should be so, when a random occur, i will tell me. Cause sometimes, i auto, while i am working on the comp, so instead it say that in the debug window, it will popup, and i will do the random manually (since they arent working).
- That was short :D
this is an extremely good idea but perhaps you could incorperate a system alert sound into that have it go ding ding ding along with this popup
From: burnout
this is an extremely good idea but perhaps you could incorperate a system alert sound into that have it go ding ding ding along with this popup
you could do that your self actually..
Something like:
if (FindRandom) then
begin
Alert('stuff');
PlaySound(sound);
end;
Cstrike
2009-08-03 05:23:43
A popup window for randoms isn't a bad idea. I basically have to have the sounds on in order to know if I get a random. I will usually be fishing, and here the teleport sound, so then I go "oh another random". ( just had a random as I typed this, the irony)
Now the down side is that if you're playing a full port game, such as half life, halo or doom etc and that window pops up, it can be disturbing after a while. So I think the idea is good for the most part.
burnout
2009-08-03 23:56:50
does srl actually have a PlaySound(sound); or i have to make one lol and in making one idk now to play the sound without using windows media player or quick time player to play it…
Awkwardsaw
2009-08-04 00:08:05
you have to make one :p you just need the file name for a sound. like tada.wav(or mp3 if you have a better version of SCAR)
also, what about using getaplication(i think).messagebox? that opens a pop-up, and alerts SCAR(it makes it flash in tool bar). then ahve an auto-time out to continue with the script if your not at the cpu
Naike
2009-08-05 19:16:51