Results 1 to 3 of 3
- 06-03-2009, 03:50 PM #1
Member
- Join Date
- Mar 2009
- Location
- Atlantis
- Posts
- 8
- Rep Power
- 0
output "left click"/enter command?
I'm trying to write a program that will automatically fill out an internet application from a users input and then I want my program to click a submit button at the bottom of the page, but I'm not too sure java might have something like it? I believe PHP has a .CLICK function of some sort, but I was wondering if Java had one. I looked into the URL, and the many HTTP API docs but non contain what I need.
Thank you for your time, and replies!
- 06-03-2009, 11:17 PM #2
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,538
- Rep Power
- 11
Have a look at the Robot class. But its use to perform actual program logic by means of actions carried out on on screen controls is rather awkward.
Often a "submit" button has a url associated with its action. It might be better to figure out what that URL is and have your program do the same thing based on the given input (GET the contents of the url or POST data to it.)
- 06-04-2009, 05:01 AM #3
Sounds like you want to GET the blank page and then POST back to the server. The contents of your post response will have to match what the page/browser would produce. As long as there is no authentication or other complicated content in the blank page, that should be easy. I suggest GETting the blank page because the server might expect a GET before accepting a POST.
Similar Threads
-
Java, Military Format using "/" and "%" Operator!!
By sk8rsam77 in forum New To JavaReplies: 11Last Post: 02-26-2010, 03:03 AM -
MoneyOut.println("It took you (whats wrong?>",year,"<WW?) years to repay the loan")
By soc86 in forum New To JavaReplies: 2Last Post: 01-24-2009, 06:56 PM -
help with "Runtime.getRuntime().exec(this.command);"
By itaipee in forum New To JavaReplies: 6Last Post: 12-29-2008, 02:47 PM -
Regarding "install" command
By Kavitha Kamath in forum New To JavaReplies: 1Last Post: 11-21-2008, 05:30 AM -
the dollar sign "$", prints like any other normal char in java like "a" or "*" ?
By lse123 in forum New To JavaReplies: 1Last Post: 10-20-2008, 07:35 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks