SRL Archive - OSR Help

Making a Key Be Held Down?


Mat

2011-12-31 19:13:31

Yea^^ Any One Know How?
I Know Like this:
PressKey(VK_Space);
I Need it for NPC Chatting.
The One I've got is
Function Chater:Boolean;
Var
Run:Integer;
Begin
Repeat
Inc(Run);
TypeSend(' ');
Wait(RandomRange(1200, 1400));
Until(Run = 4);
End;
Any Help?
I'm not sure if you can Hold Key Down.
Mat

Shuttleu

2011-12-31 19:14:36

KeyDown

~shut

Mat

2011-12-31 19:15:18

Ow :)
:D
Thanks Shut :)
Mat
How do I stop it?

Shuttleu

2011-12-31 19:15:56

KeyUp

~shut

Mat

2011-12-31 19:18:10

It still only Presses it once?
Do I still have to put it in a Repeat?
Mat

Shuttleu

2011-12-31 19:18:49

if you want it to be pressed multiple times then yes

~shut

EDIT: or if you mean what i think you mean, put a Wait(10000) between the two

Mat

2011-12-31 19:22:10

Okay Thanks Man :)
Mat

Aegis

2011-12-31 19:33:17

Assuming you're talking about skipping through NPC chat, I believe the old "ClickContinue" was updated to handle this? It may be called something else now, though..

Don't quote me on this, I just remember reading something about this somewhere.

Mat

2011-12-31 19:42:29

Aegis, your right :) How can I tell it What Option to choose? as I have it on a Coordinate? I can't seen to find it in the Chat Functions?
Mat
Edit: Found it :)
 FindNPCChatText('repair',ClickLeft);