Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » API

Post new topic   Reply to topic
Controlling another application
View previous topic :: View next topic  
Author Message
DocHollywood
Newbie


Joined: 02 Feb 2004
Posts: 1

PostPosted: Feb 2nd, 2004 12:23 PM    Post subject: Controlling another application Reply with quote

Hey All,

I'm writing an application which will take data from an Excel Spreadsheet and enter it into an existing application which I did not develop and do not have access to the source code. I do know that the application was written in Visual Basic 6 though, so hopefully that will help a bit.

I however and developing in VB.net

What I would like is to somewhat take control of the external application (TCG) and input data into fields on the form. Nearly all fields are MSflexgrid's, but some fields do require a double-click to activate a hidden combobox.

I have considered sending Keystrokes to TCG, but this is a very unstable method.


Is there any way I can take control of the program using API or another method to directly access data fields or objects even though TCG was not written for communication purposes?
Back to top
View user's profile Send private message Send e-mail
Avis
Junior Poster


Joined: 07 Oct 2003
Posts: 510
Location: India

PostPosted: Feb 2nd, 2004 12:42 PM    Post subject: Reply with quote

Hi!

Check the [api]SendMessage[/api] api. This may allow the stability in sending the stuff to the other app.

Thanks!
_________________
Code Snippets, Tutorials, Utilities, Controls

Low cost Web Hosting
Hosting starts at as low as $4 per year!


Always follow posting guidelines
Put your VB code in [vb ] your code [ /vb] tags!
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » API All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic