here the code i have.... I don't know how I would add ur code to it though.... how would i do it.. as you can see, i tried to do it, though unsuccessfully....
VB Code:
  1. Dim CANCELIT As Boolean
  2. Private Sub Pause(Length As Long)
  3. Dim OldTime As Long
  4. OldTime = GetTickCount
  5. Do
  6. DoEvents
  7. If GetTickCount >= OldTime + Length Then Exit Do
  8. Loop
  9. End Sub
  10. Private Sub Command1_Click()
  11. Dim Acc As Integer
  12. If IsNumeric(Text2.Text) Then
  13. Acc = Text2.Text
  14. Else
  15. MsgBox "Please enter a numeric value"
  16. End If
  17. Pause (1000)
  18. Function Add(strMessage As String) As String
  19. strMessage = Text1.Text
  20. Dim i As Integer
  21. For i = 1 To Len(strMessage)
  22. If CANCELIT = True Then
  23. CANCELIT = False
  24. Exit Function
  25. End If
  26. SendKeys Mid$(strMessage, i, 1)
  27. Pause (Acc)
  28. Next
  29. End Function
  30. End Sub
  31.  
  32. Private Sub Command2_Click()
  33. Text1.Text = ""
  34. End Sub
  35.  
  36. Private Sub Command3_Click()
  37. CANCELIT = True
  38. End Sub