Log in

View Full Version : SendKeys is too slow...



ilklhl1Lihl1
06-02-2012, 09:27 PM
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
06-02-2012, 09:31 PM
PressKey(key: word);

^?

I personally use TypeByte(k: byte);

YoHoJo
06-02-2012, 09:32 PM
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
06-02-2012, 09:33 PM
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
06-02-2012, 09:34 PM
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
06-02-2012, 09:43 PM
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
06-02-2012, 09:51 PM
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
06-02-2012, 09:55 PM
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
06-02-2012, 10:01 PM
http://www.hapshack.com/images/thumbs/og4aB.png (http://www.hapshack.com/images/og4aB.png)

NKN
06-02-2012, 10:04 PM
Did you update Simba or not?

ilklhl1Lihl1
06-02-2012, 10:08 PM
Yes, i even reinstalled it and downloaded the new version