PDA

View Full Version : sendkeys too fast?



yanix
01-14-2008, 07:36 PM
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
01-14-2008, 10:27 PM
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
01-15-2008, 12:50 PM
Allright.. im sry but WHAT? im asking for a VB6 sendkeys that wont be a spammer.. not a Scar function

R0b0t1
01-17-2008, 02:31 AM
*sigh*



Function SendKeys(Text: String) As Boolean

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

End Function

gamer 5
01-17-2008, 03:14 AM
Cool i didn't know that sleep could be used thanks even i learned something!

yanix
01-17-2008, 09:37 AM
Ah.. lol ty :D