Hello All,
I am attempting to find a window, give it focus, then sendkeys to it in VB6.
Found window by using FindWindow API
Gave it focus using SetActiveWindow API
Problem:
after the SetActiveWindow call the window doesn't accept the keys sent, it actually seems as if the window waits until all keys have been sent before it gives the window focus.
Thanks
Matt
Code:
Private Sub cmdAttAy_Click()
Dim a as long
a=FindWindow(vbNullString, "Attay Toolbar")
SetActiveWindow a
SendKeys "{F5}"
End Sub
I am attempting to find a window, give it focus, then sendkeys to it in VB6.
Found window by using FindWindow API
Gave it focus using SetActiveWindow API
Problem:
after the SetActiveWindow call the window doesn't accept the keys sent, it actually seems as if the window waits until all keys have been sent before it gives the window focus.
Thanks
Matt
Code:
Private Sub cmdAttAy_Click()
Dim a as long
a=FindWindow(vbNullString, "Attay Toolbar")
SetActiveWindow a
SendKeys "{F5}"
End Sub