Okay add these declarations and constants (just under "Public Class Form1"):
[php]
Public Declare Function keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long) As Long
Const KEYEVENTF_KEYUP = &H2
[/php]
Then add this sub procedure:
[php]
Private Sub press(ByVal mykey1 As Keys, ByVal mykey2 As Keys)
keybd_event(mykey1, 0, 0, 0)
keybd_event(mykey2, 0, 0, 0)
keybd_event(mykey1, 0, KEYEVENTF_KEYUP, 0)
keybd_event(mykey2, 0, KEYEVENTF_KEYUP, 0)
End Sub
[/php]
Then to utilize this,
[php]
Press(Keys.ControlKey, Keys.W) 'this will press Ctrl + W)
[/php]
FLAMESABER originally gave me a similar snippet, I just modified it to press two keys.
Not sure it works though :P Don't have VB right nao. It should though.
J-Deezy