Results 1 to 3 of 3

Thread: Simulation of keystrokes

  1. #1
    Guest

    Question

    Does anyone know if there is a way to simulate keystrokes? Well here is what i want to do. i have a text box and two buttons. I want one button to highlight the text in the text box, and the other button to copy it to the clipboard. thanks in advance.

    -Steve

  2. #2
    Guest
    Shouldn't be to hard.

    Code:
    Private Sub Command1_Click()
    Text1.SelStart = 0
    Text1.SelLength = Len(Text1.Text)
    Text1.SetFocus
    End Sub
    
    Private Sub Command2_Click()
    Clipboard.SetText Text1.SelText
    End Sub

  3. #3
    Guest

    wow

    wow, i guess that really isnt hard. thanks a BUNCH

    -steve

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width