This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Java in General and the fly likes Simple form/field filler in java ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Simple form/field filler in java ?" Watch "Simple form/field filler in java ?" New topic
Author

Simple form/field filler in java ?

Raghavendra Shockley
Ranch Hand

Joined: Jan 21, 2012
Posts: 69
I want to make a (preferably) command line based java program that will fill data into fields of a webpage or another program (java/non-java) and mention if the info entered was accepted or not.
Is this possible in Java? If yes, please suggest how I can do it.

Thanks.

Back to square one.
Raghavendra Shockley
Ranch Hand

Joined: Jan 21, 2012
Posts: 69
please help me.
Raghavendra Shockley
Ranch Hand

Joined: Jan 21, 2012
Posts: 69
bounce
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

The only two ways I can think of to input data into another program are using JNI or java.awt.Robot. The latter will require some precise coordinates if you need to perform automated mouse clicks. Getting info back will be a lot harder; I don't think it's possible with Robot, and it may be impossible with JNI as well.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Simple form/field filler in java ?