SRL Archive - Outdated / Broken

F-Key Auto Talker


Bebe

2006-03-28 22:22:06

Made this 5 minutes ago, enjoy:

{.Script Info:
# ScriptName = Bebemycat2's Auto F-Key talker
# Author = Bebemycat2
# Description = n/a
# Version = 1
# Date = n/a
# Comments = n/a
/Script Info}


Program Talker;
{.include SRL/SRL.scar}

Var
t: Integer;

Const
WhatToSay1 = ''; //What to say with F1
WhatToSay2 = ''; //What to say with F2
WhatToSay3 = ''; //What to say with F3
WhatToSay4 = ''; //What to say with F4
WhatToSay5 = ''; //What to say with F5
WhatToSay6 = ''; //What to say with F6
WhatToSay7 = ''; //What to say with F7
WhatToSay8 = ''; //What to say with F8
WhatToSay9 = ''; //What to say with F9
WhatToSay10 = ''; //What to say with F10
WhatToSay11 = ''; //What to say with F11
WhatToSay12 = ''; //What to say with F12



Procedure BTalk;
Begin
SetupSRL;
t:=0;
Repeat
t:= (t+1)
Wait(275);
If (IsFKeyDown(1))Then
Begin
t:=(t+1)
TypeSend (WhatToSay1 + chr(13))
End;
If (IsFKeyDown(2))Then
Begin
t:=(t+1)
TypeSend(WhatToSay2 + chr(13))
End;
If (IsFKeyDown(3))Then
Begin
t:=(t+1)
TypeSend(WhatToSay3 + chr(13))
End;
If (IsFKeyDown(4))Then
Begin
t:=(t+1)
TypeSend(WhatToSay4 + chr(13))
End;
If (IsFKeyDown(5))Then
Begin
t:=(t+1)
TypeSend(WhatToSay5 + chr(13))
End;
If (IsFKeyDown(6))Then
Begin
t:=(t+1)
SendKeys (WhatToSay6 + chr(13))
End;
If (IsFKeyDown(7))Then
Begin
t:=(t+1)
TypeSend(WhatToSay7 + chr(13))
End;
If (IsFKeyDown(8))Then
Begin
t:=(t+1)
TypeSend(WhatToSay8 + chr(13))
End;
If (IsFKeyDown(9))Then
Begin
t:=(t+1)
TypeSend(WhatToSay9 + chr(13))
End;
If (IsFKeyDown(10))Then
Begin
t:=(t+1)
TypeSend(WhatToSay10 + chr(13))
End;
If (IsFKeyDown(11))Then
Begin
t:=(t+1)
TypeSend(WhatToSay11 + chr(13))
End;
If (IsFKeyDown(12))Then
Begin
t:=(t+1)
TypeSend(WhatToSay12 + chr(13))
End;
Until(t<=0);
End;

Begin
BTalk;
End.

Pwnd

2006-03-28 22:31:55

This required pure skill, I know ;P

XxKanexX

2006-03-28 22:38:15

I was vereh bored, So i made my own version. <3 Bebe ^^;


{.Include SRL/SRL.scar}

Const
MaxMessages = 5;

function FKeyDown: Integer;
var i: Integer;
begin
for i:= 1 to 12 do
if IsFKeyDown(i) then
begin
Result:= i;
exit;
end;
end;

var Msgs: array[1..12] of String;
var i, Key: Integer;
begin
ClearDebug;
if MaxMessages < 12 then
begin
for i:= 1 to MaxMessages do
Msgs[i]:= ReadLn('Message #'+Inttostr(i)+' Value:');
repeat
Key:= FKeyDown;
if (Key < (MaxMessages + 1)) and (Key > 0) then
begin
TypeSend(Msgs[Key]);
Writeln('Sent: '+Msgs[Key]);
Key:= 0;
end;
until(false);
end else
Writeln('Can'#39't have more than 12 messages, snucker.');
end.

Bebe

2006-03-28 22:40:42

Whatever, I was just bored and tired so I made a simple script :p

Hope someone gets some use out of it……

XxKanexX

2006-03-28 22:43:59

I'm always megor boredz.

Pwnd

2006-03-29 00:00:55

From: XxKanexX
I'm always megor boredz.

Kane, learn how to masturbate… oh… forgot :o

XxKanexX

2006-03-29 00:28:16

From: Pwnd
Kane, learn how to masturbate… oh… forgot :o

Do they have a book, "Masturbating for Dummies" ?

And yes, you forgot. Marina. ;)

Pwnd

2006-03-29 00:53:11

From: XxKanexX
Do they have a book, "Masturbating for Dummies" ?

And yes, you forgot. Marina. ;)

http://www.aboutmasturbation.com/Article14.phtml

XxKanexX

2006-03-29 01:02:29

From: Pwnd
http://www.aboutmasturbation.com/Article14.phtml

I was kidding.. -.-

Pwnd

2006-03-29 01:29:31

From: XxKanexX
I was kidding.. -.-

But it even gives you techniques!

Maybe flyboy can use it :rolleyes:

The Un-Named

2006-03-29 13:44:03

From: XxKanexX
I was vereh bored, So i made my own version. <3 Bebe ^^;


{.Include SRL/SRL.scar}

Const
MaxMessages = 5;

function FKeyDown: Integer;
var i: Integer;
begin
for i:= 1 to 12 do
if IsFKeyDown(i) then
begin
Result:= i;
exit;
end;
end;

var Msgs: array[1..12] of String;
var i, Key: Integer;
begin
ClearDebug;
if MaxMessages < 12 then
begin
for i:= 1 to MaxMessages do
Msgs[i]:= ReadLn('Message #'+Inttostr(i)+' Value:');
repeat
Key:= FKeyDown;
if (Key < (MaxMessages + 1)) and (Key > 0) then
begin
TypeSend(Msgs[Key]);
Writeln('Sent: '+Msgs[Key]);
Key:= 0;
end;
until(false);
end else
Writeln('Can'#39't have more than 12 messages, snucker.');
end.


Set your message number to 12 then try it, snucker. :)

Kane, can I pinch some of that code if I credit you?

Krazy_Meerkat

2006-03-29 15:28:44

Good work Bebe :) I noticed the variable t in there.. You add to it and set it 0 at the start…
Then you put Until(t<=0); :\ Does t do anything?

phantombmx

2006-03-29 15:56:46

ill be usin this later.. lol :cool:

XxKanexX

2006-03-29 23:16:32

From: The Un-Named
Set your message number to 12 then try it, snucker. :)

Kane, can I pinch some of that code if I credit you?

Absolutely. ;)