Help automate a website

Fat Burger

Flaccid Member
Sep 30, 2004
3,449
0
0
42
Portland, OR
www.heartboxers.com
Marklar
₥0
Ok, I have a website that has a text box and button. You type into the text box and hit the button (Submit), and it opens several windows.

What I'm looking for is a way to automate this, preferably so that it runs as a service and runs every 24 hours. Is there an easy way to do this? I'll give 5000 marklar to anyone who can help me out.
 
Yes, but more information is needed. What exactly is happening when you hit submit? Is it posting the textbox (and other information?) to a page? Is it just doing Javascript tricks to open a bunch of pages? And what *EXACTLY* do you need to accomplish? Do you need the pages to be retreived, or do you just need the form to be posted?
 
Is it on Windows? If so, you/I can easily script it with AutoIt. (Pereferably, version 2 for something simple like this.) I'd guess it would take <5 minutes to write and compile the app.
 
mattcohn.com said:
Yes, but more information is needed. What exactly is happening when you hit submit? Is it posting the textbox (and other information?) to a page? Is it just doing Javascript tricks to open a bunch of pages? And what *EXACTLY* do you need to accomplish? Do you need the pages to be retreived, or do you just need the form to be posted?

It basically builds links using the information from the text box, and then opens them in separate IE windows.
 
Just use a while loop?
Code:
<?php
$content = $_POST['info'];

do
{
echo"<script type="text/javascript">window.open('page.php?stuff=$content')</SCRIPT>";
}while (true);
?>

??
 
Here, let me be a little more specific. Basically, someone types their name into a text box, and hits "Submit". It then opens several pages from the intranet using their name:

http://intranet/page.php?Choice=1&Login=fburger
http://intranet/page.php?Choice=2&Login=fburger
http://intranet/page.php?Choice=3&Login=fburger

What I want is to have all these windows (about 12 I think) open on a schedule, e.g. every day at noon. Customization can be done by me for each person, they don't have to be able to do it themselves. (In other words, the text box and "Submit" button can go away, in lieu of a customized .exe, php page, or whatever.)
 
I dunno how the loging in would work, but that's easy to do with an html file with javascript and windows scheduler.
 
Fat Burger said:
Well there's no login outside of the "fburger" in the URL. No password or anything.
so you just need the page to come up?

Use Autoit v2. If I understand you correctly, have it launch the site, tab to the text box, type in the name, TAB to submit button, and hit enter. Its quick and dirty, but works VERY well.

edit: Msg me on aim if ya want, I'm sure I can code it for ya. mattressfish