Passing text to another application (RESOLVED)
I am attempting to write an program which will send text to another application. The other application contains a textbox. In this case I am trying to write a poetry reader for a chat group - to save having to enter each line manually.
questions is - how do I find the running application - and how do i find and enter text into the textbox....
I am relatively new to VB - and am trying to teach myself - but this has me stumped. =/
thanks in advance
If You Know What App or Window Was ACTIVE ...
Hi !
If You Know The Name Of Active Window You Can Find Hwnd Of It ! With These Codes !
'---------------------------------------
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private sub cmdFind_click()
Dim Handle as Long
' For Exm : Handle=FindWindow(Class Here , Name Here) {You Can Find Class With API SPY Or Spy++ And Find Name That Wrote Top Of Windows}
Handle=FindWindow("Calculator",vbNullString)
MSGBOX (Handle)
End Sub
;)