SRL Archive - OSR Help

In the SendKeys procedure what is the best parameters to use?


Sax

2013-07-19 06:51:08

What are the best parameters to use in keywait and keymodwait, and how does that work?

SendKeys(s: String; keywait: LongInt; keymodwait: LongInt);

Thanks in advance :)

Rich

2013-07-19 07:16:45

About 30ms is good for both of them, plus randomness of course. 30 + Random(20) would do fine for both.

If this is for RS though, use TypeSend.

Sax

2013-07-19 07:18:34

it is for action bar shortkey and menu selection on RS, not for talking. Is it still better to use TypeSend?

Rich

2013-07-19 07:25:02

I'd go for TypeSendEx. The number of parameters for SendKeys varies depending on which version of Simba the user is running, and TypeSendEx takes this into account. I assume you don't want to press enter, so set the second parameter as false.

Eg:
TypeSendEx('1', False);

Sax

2013-07-19 07:33:19

Yeah I already noticed the Enter thing and I am going for TypeSendEx.

Thanks! :D

xtrapsp

2013-07-19 09:22:18

you could always make a case and make it really random? Less bot like

Rich

2013-07-19 12:05:36

From: xtrapsp
you could always make a case and make it really random? Less bot like
Make what really random? :confused:

xtrapsp

2013-07-19 13:49:46

From: Rich
Make what really random? :confused:


the keywait,

one case 1-10 seconds
second case 50-100 seconds.

Sax

2013-07-19 19:34:56

I dont think 1-10 ms is very human-like (:D) but it's a good idea.