Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing data between applications 1

Status
Not open for further replies.

NicZak

Programmer
Oct 1, 2003
1
US
I am trying to create a basic macro/automation program that will import a text file and then pass string values (line by line) to another application. The two questions I have at this point are:

1) What is the best way to determine whether or not a specific application is currently running? (Check if there is a window with a specific title open (i.e. "Untitled - Notepad") or check to see if a specific executable is currently running (i.e. "notepad.exe") ??

2) Once it's been determined that the program is running, how do I pass data (a string in my case) into a specific text field/area in a currently running windows application (in my case, the "Loan Comments" window as seen in
 
This question should be in forum116
You'll need a lot of microsoft specific API calls to do this kind of thing.

Trying to automate the GUI to input a large text file of existing information seems to be the wrong way of going about it IMO.
Are you sure that the application in question has no "import" facility?
Reformatting your data into say a .CSV file and using import would be a far simpler solution if its available to you.


--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top