Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 12th, 2006, 10:01 PM   #1
darkprogrammer
Newbie
 
Join Date: Dec 2006
Posts: 2
Rep Power: 0 darkprogrammer is on a distinguished road
help?!

Hey guys,
I have a prob and cant get any help anywhere so lets see if you guys can help me out! I have a job that includes me clicking 1000's of checkboxes per day! and my hand gets tired so I was wondering if you guys could program me something or give me a program or atleast point me in the right direction to getting a program that will automatically click the boxes on the page? that way I can get on to more important things to do! like other work! I was hoping you could make it run in the background of the web page with the boxes but if you cant that is alright too! So any suggestions, codes, or ideas?
darkprogrammer is offline   Reply With Quote
Old Dec 12th, 2006, 10:30 PM   #2
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
Your best bet would probably be javascript. You could do it in a variety of languages, but some would require more code and experience. I'd say give Javascript a shot. No one here will code this for you (at least I highly doubt it). Look into it yourself, try it, and if you get stuck, post back here with your problem and we will try to help. If you don't want to do it yourself, there is a job offers forum. Start by googling javascipt tutorials. Remember, java ain't javascipt. Two different langauges. Good luck
Booooze is offline   Reply With Quote
Old Dec 12th, 2006, 10:31 PM   #3
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
Hm, so you have to click on check boxes on a website and you want to be able to launch a program to do it for you? A Java program can not access a website or fill in HTML form fields on a website.
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Old Dec 12th, 2006, 11:43 PM   #4
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 856
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
You may be able to bypass the form by directly submitting a POST request via Java.

The author of this article on DevX.com claims to have developed a solution to submitting multi-part POST forms involving file uploads and cookies, and has made the (as he calls it) ClientHTTPRequest source code available for download. You can find docs for it as well.

There are a number of commercial Java APIs that provide the desired functionality, but I doubt you will consider that a viable option.

You may also want to look into the Java Robot API.
titaniumdecoy is offline   Reply With Quote
Old Dec 13th, 2006, 1:45 PM   #5
Booooze
Expert Programmer
 
Booooze's Avatar
 
Join Date: Mar 2006
Location: Igloo
Posts: 710
Rep Power: 3 Booooze is on a distinguished road
Send a message via MSN to Booooze
I was just going to say write little script to select all the checkboxes for you:p probably easier, why bother with the POST?
Booooze is offline   Reply With Quote
Old Dec 14th, 2006, 3:31 AM   #6
darkprogrammer
Newbie
 
Join Date: Dec 2006
Posts: 2
Rep Power: 0 darkprogrammer is on a distinguished road
that is what I was wanting actually booooze! lol a little script that will click them for me, for I have to check the boxes and the boxes select items to be downloaded once I get 1,000. so a post wouldnt quite do what I am wanting! lol Sorry to be such a pain, and I should have said that in my original post, however I didnt think it would matter, but I guess I was wrong eh?
darkprogrammer is offline   Reply With Quote
Old Dec 16th, 2006, 7:18 PM   #7
kyndig
Newbie
 
Join Date: Jan 2006
Posts: 7
Rep Power: 0 kyndig is on a distinguished road
This isnt a very good example of what you want. This was assuming the only content on the page was checkboxes.

Private Sub Command1_Click()
    With browser.Document
      'do some sort of loop through the checkboxes
            browser.SetFocus
            SendKeys "{TAB}"
            SendKeys "{ }"
    End With
End Sub

If you have the name of the form on the page, you can use something like.

browser.document.formname.checkbox.value = "1"

I think...
kyndig is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:17 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC