Results 1 to 6 of 6

Thread: Batch form filler

  1. #1
    Join Date
    Dec 2008
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Batch form filler

    Hi all,

    I want to make a batch form filler. I have to submit a lot of stuff to a website, and I realized scar might be the tool I need.
    Concrete:
    There are 3 field that have to be filled in, and afterwards, the script has to click on submit, and start again.

    Now, every field has a different value every time, so I'm wondering how I can add those values quick in a scarscript.
    I was thinking that scar could read the values from a(or 3 different?) textfile, and go through the textfile from the start to the end, and then stop the script.


    So it has to enter 3 linked values, click op submit, and enter 3 linked values again.
    For example:

    enter Value1a:Value1b:Value1c (each in his own field), click submit
    enter Value2a:Value2b:Value2c (each in his own field), click submit
    enter ...

    And so on, there are about 800 things that have to be submitted. Entering that stuff manually would take quite some time, and it shouldn't be to hard to make this, but I don't know how I let the script scroll through all those values:/

    It's been a few years since I've last used scar(in my runescapeperiod), so if someone could/would help me, it's greatly appreciated!

    EDIT: being detectable or something like that is a non-issue btw, there's no need for anything fancy. Less is more

  2. #2
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Filling out a form with different values every time? Is that what you're trying to say? Trying to fill out a form with different values every time, depends if you know all the values. Constants for values i'm guessing.

  3. #3
    Join Date
    Dec 2008
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes, that's what I'm trying to say
    It would be better if it was in VB or something, so I could keep using my computer and could just use a database with the values.

    I think I'm gonna try with an array :/

  4. #4
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    this could be easily solved by using three separate arrays with cases. the only problem i see is reading the .txt files. idk if there is a procedure that does that. but you could just manually add the info into the cases instead

    EDIT: or you could try to make a sweet script that adds the info to your cases for you...


    EDIT2: i decided to make the copy script for you if you want. it takes your .txt data and turns it into a case format. to use this program you MUST have 2 notepads running side by side (don't maximize it). then select the notepad with the usernames as the client.

    Edit3: make sure you fill out the constants too. and make sure you add about 20 or so blank spaces after the usernames (just press enter 20 times at the end of your username.txt doc)
    Last edited by x[Warrior]x3500; 09-18-2009 at 11:55 AM.

  5. #5
    Join Date
    Dec 2008
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the script, but I've found quite a fast way to add the data in scar.
    I add the data in excel(everything in a separate column, so you can autofill numbers etc), select the necessary stuff and just copy paste it all at once.

    Normally my problem should be solved, but thanks for your time, I really appreciate it!

  6. #6
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You could just use writeini and readini.

    ~Sandstorm

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •