SRL Archive - C#/Visual Basic Help and Tutorials

sendkeys too fast?


yanix

2008-01-14 14:36:27

Umh.. ive made this typer, and the sendkeys are WAY to fast.. its like that sendkeys that works but no one uses.. how do i slow it down? cuz it writes without even pressing any buttons, its like it copies the text:D

R0b0t1

2008-01-14 17:27:21


procedure Wait(s: Integer);
var
I: Integer;
begin
for I:= 0 to s do
Application.ProcessMessages;
end;

Something like that…?


EDIT: Whoops, though this was in the delphi forum… Call Sleep(ms)

yanix

2008-01-15 07:50:57

Allright.. im sry but WHAT? im asking for a VB6 sendkeys that wont be a spammer.. not a Scar function

R0b0t1

2008-01-16 21:31:49

*sigh*


Function SendKeys(Text: String) As Boolean

//Copy SCAR stuff to VB here, but instead of "Wait", use "Sleep".

End Function

gamer 5

2008-01-16 22:14:53

Cool i didn't know that sleep could be used thanks even i learned something!

yanix

2008-01-17 04:37:09

Ah.. lol ty :D