Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-04-2008, 12:10 AM
Member
 
Join Date: Dec 2008
Posts: 3
musicgold is on a distinguished road
Excel macros to control Java application
Hi,

Is there a way to create a macro to control a Java-based application interface? I have a Java based application on which I spend a lot of time doing repetitive tasks.
I use Excel based macros to access web pages and download files. I wonder if there is a similar way to have a macro in Excel which can open the Java application and feed the necessary information in its text boxes.

Thanks,

MG.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-04-2008, 12:39 AM
xcallmejudasx's Avatar
Senior Member
 
Join Date: Oct 2008
Location: Houston, TX & Flint, MI
Posts: 333
xcallmejudasx is on a distinguished road
Send a message via AIM to xcallmejudasx
Not sure about excel but you could write a java application to do that. load.exec("command.exe", some text file with the information)

This would require you to write a batch file that changes to the directory the java application is saved and then run it from there. As far as feeding the information to it I'm not sure
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 12-04-2008, 12:49 AM
Member
 
Join Date: Dec 2008
Posts: 3
musicgold is on a distinguished road
xcallmejudasx,

Thanks. Could you point me to a site where I can read the basics of creating the java application you mentioned?

MG.
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 12-04-2008, 01:03 AM
xcallmejudasx's Avatar
Senior Member
 
Join Date: Oct 2008
Location: Houston, TX & Flint, MI
Posts: 333
xcallmejudasx is on a distinguished road
Send a message via AIM to xcallmejudasx
Do you know Java programming? If not then I wouldn't recommend this option because it may require some complex working.Java 2 Platform SE 5.0 is the class you use to open run a program from within Java. I know you can tell it what file to open using what program but I have no idea if you can also give it extra information and say populate some fields with information on load.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 12-04-2008, 01:16 AM
Member
 
Join Date: Dec 2008
Posts: 3
musicgold is on a distinguished road
xcallmejudasx,

Thanks. No, I don't know Java programming.

MG.
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 12-04-2008, 01:23 AM
Fubarable's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 1,289
Fubarable is on a distinguished road
You might want to try out a windows batch language such as WinBatch. They can help you automate repetitive tasks and since they're built to do this, they're a lot easier to use than Java or to try to shoehorn another language's macros to do something they weren't intended to do.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache POI and VB macros Webuser New To Java 0 12-02-2008 08:10 AM
Java NetBeans IDE 6.1 Desing out of control, help needed!!! Please... equattro NetBeans 0 10-05-2008 09:35 PM
POI for delete excel record with keeping the existing macros Jay Advanced Java 0 07-31-2008 12:44 PM
POI - excel macros manipulation Jay Advanced Java 0 07-31-2008 12:04 PM
control app width based on certain control thebillybobjr SWT / JFace 0 05-15-2008 06:52 PM


All times are GMT +3. The time now is 08:57 AM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org