How do I.....?

Posts 1–4 of 4 · Page 1 of 1
How do I.....?
make visual basic type something when i press a key?
Quote Originally Posted by kimodragon View Post
make visual basic type something when i press a key?
That's a hotkey...

I am still working on finding one...
VERY EASY but depending on where? are you talking on a chatbox you have selected or a text area in the program?
Try this
You need a TextBox
Code:
Public Class Form1
    Protected Overrides Function ProcessDialogKey(ByVal keyData As System.Windows.Forms.Keys) As Boolean

        Select Case (keyData)
            Case Keys.F10
'Replace F10 with the Key you want to type something
                  SendKeys.Send(textBox1.text)
        SendKeys.Send("{ENTER}")
                End Select
        Return MyBase.ProcessDialogKey(keyData)
    End Function
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us