Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


getting text from another program


getting text from another program

Author
Message
bwarn70
bwarn70
Supreme Being
Supreme Being (237 reputation)Supreme Being (237 reputation)Supreme Being (237 reputation)Supreme Being (237 reputation)Supreme Being (237 reputation)Supreme Being (237 reputation)Supreme Being (237 reputation)Supreme Being (237 reputation)Supreme Being (237 reputation)

Group: Forum Members
Posts: 1, Visits: 7
I am coding in vb2005... I am trying to create an interface between two programs (an accounting program & an imaging program).  What I want to happen... select item (text) in accounting program and then by pressing a hotkey, pass the text to the imaging program to run a search.  I started out trying to use sendmessage api and found that in VB i was having problems due to not being able to create pointers for the call.  I am now thinking that the best way to get the text from the accounting program may be through the Microsoft Active Accessibility but am having trouble finding any documentation on how to use it.  And maybe this isn't the best approach either.  Any help and input would be greatly appreciated.

Tasks:
1 - hotkey creation & responce - DONE
2 - Get selected text from syslistview in accounting software
 2a - Get hWnd for syslistview - DONE
 2b - Get index of selected item - DONE
 2c - Get text of selected item - PROBLEM
3 - Pass text into imaging software to run search - DONE

Edited
9/2/2006 by bwarn70
Keithuk
Keithuk
Forum God
Forum God (155K reputation)

Group: Moderators
Posts: 1.9K, Visits: 5.5K
bwarn70 (9/2/2006)
I am coding in vb2005..

Then you should have posted in .NET forum. Wink

Keith

I've been programming with VB for 17 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

Gopinath.Karyadath...
Gopinath.Karyadath Panangad
Forum God
Forum God (913 reputation)Forum God (913 reputation)Forum God (913 reputation)Forum God (913 reputation)Forum God (913 reputation)Forum God (913 reputation)Forum God (913 reputation)Forum God (913 reputation)Forum God (913 reputation)

Group: Forum Members
Posts: 5, Visits: 17
Hai



you can sendmessage API function for this Prblm.



Sendmessage text1.hwnd,WM_SETTEXT,textstring,0&

for setting text in TextBox



Sendmessage texthwnd,WM_GETTEXT,textstring,0&



forgsetting text from TextBox





OR try to subclassing the textBox handle



for more about subclassing windows plse mail me.



regards



Gopinath ( softact@rediffmail.com )

GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search