-
Please tell me how I can send a String to a specified window as the user would type it (like SendKeys() with hWnd support). SendMessage would work I think but I dont know about the flags:
Code:
SendMessage hWnd, WM_KEYDOWN, Asc(Mid(Text, A, 1)), 0
[Edited by Fox on 10-20-2000 at 04:01 AM]
-
Ah, sendMessageBystring should do the trick
Code:
Declare Function SendMessageByString Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As String) As Long
Public Const WM_SETTEXT = &HC
SendMessageByString YOurHwnd, WM_SETTEXT, 0, "This Is the string"
[Edited by kedaman on 10-20-2000 at 04:20 AM]
-
Not really, I want to type in the text and not set the caption...
-
WEll, you can't do it by sendmessage, at least i don't have the VK_'s for all the keys. Or can you use the same ones as in DirectInput?