-
When sending the Tab command to an application can you use this?
Code:
Private Sub Command1_Click()
dim StrTab as Long
StrTab=SendMessage(hWnd,WM_CHAR,vbKeyTab,0)?
End Sub
I try that code alread to send the tab key to an application but it does not work does anybody know of another way? by the way the application is a Web Page with 2 text boxes. I want to be able to send a message to the first box and then to the second box but the vbKeyTab is not helping.
Thanx
-
try this
Code:
Dim retval
retval = SetForeGroundWindow(hWnd)
SendKeys("{Tab}")
Not Tested, will make your other window default, then send tab key:)
-
It did not work. Is a web-page and the web-page has 2 "Edit controls" or (text boxes). First i want to send a message to the first box then i want my application to send the Tab key to set the cursor in the next box. I want the focus to be on the other box.
thanx