CodeItBetter Programming Another VB Programming Blog

Sendkeys example

Posted on July 26, 2011
1
2
3
4
5
6
7
8
9
10
'Coding Basics - Sendkeys example
Private Sub Command1_Click()
    Dim i As Integer
    Dim retval As Double
    retval = Shell("notepad", vbNormalFocus)
    AppActivate retval
    For i = 0 To 1000
        SendKeys i & " ", True
    Next i
End Sub
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.