SRL Archive - Help

SendKeys is too slow...


ilklhl1Lihl1

2012-06-02 17:27:43

When i do SendKeys('hello world',0); it still does type at human speed, how can i change that? i tried looking in the srl files to change the function but i can't find it.

Is there any other way i could make it type faster?

Thank you very much! :)

Le Jingle

2012-06-02 17:31:07

PressKey(key: word);

^?

I personally use TypeByte(k: byte);

YoHoJo

2012-06-02 17:32:29

Program New;
Begin
SendKeys('Hello, World', 0, 0);
End.

Types instantly.

I don't see how you tried
SendKeys('hello world',0);
That doesn't even compile.
Parameters are:
procedure SendKeys(const s: string; keywait, keymodwait: integer);

ilklhl1Lihl1

2012-06-02 17:33:12

Can you give me an example on how i could use TypeByte to print a string?

Are you sure it would do it instantly?

ilklhl1Lihl1

2012-06-02 17:34:56

SendKeys('hello world', 0, 0);   

[Error] (38:27): Invalid number of parameters at line 37
Compiling failed.

I get this when trying it

Where did you find that procedure? i can't find it :o

YoHoJo

2012-06-02 17:43:25

Built into Simba.
Open simba, at the top right side do you see green/orange arrows icon?
Is so, click that and update your Simba.

You can search functions built into simba using the function list/search box at the left hand side of simba.

ilklhl1Lihl1

2012-06-02 17:51:41

This is my SendKeys procedure, is this actually normal?
procedure SendKeys(S: String; keywait{$IFNDEF SIMBAMAJOR980}, keymodwait{$ENDIF}: integer);
begin
SmartSendKeys(S);

end;

looks like SmartSendKeys only sends the string …

YoHoJo

2012-06-02 17:55:05

Open Simba.
Do what I said above to update it (if needed).

Then all you need is:
Program New;
Begin
SendKeys('Hello, World', 0, 0);
End.

ilklhl1Lihl1

2012-06-02 18:01:20


NKN

2012-06-02 18:04:28

Did you update Simba or not?

ilklhl1Lihl1

2012-06-02 18:08:05

Yes, i even reinstalled it and downloaded the new version