Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Const WM_KEYDOWN = &H100
Private Sub Command1_Click()
PostMessage hwnd, WM_KEYDOWN, vbKeyShift, 0
PostMessage hwnd, WM_KEYDOWN, vbKey6, 0
End Sub
hmm I tryed what you said but it doesn't seem to work. It seems like all the code does is press an instant of shift then after thats done it presses an instant of 6 which would not give me the ^ that i'm looking for.