Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

iMacros help

Name: Anonymous 2010-01-18 14:04

I was working on a macro to guess this particular code:
CowBoyBeebopXvj5ks21o73kdp4if9md5jp47???? (number, letter, letter, number)

The macro is done in imacro.
For my macro I have a file in datasources folder called input.txt. It has a copy of every possible combination, like this:
[iOpus]
name0=0
name1=0aa0
name2=0ab0
name3=0ac0

My code is:
SET !DATASOURCE input.txt
SET !VAR1 CowBoyBeebopXvj5ks21o73kdp4if9md5jp47{{name!LOOP}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regf ATTR=ID:register_username CONTENT={{!VAR1}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:regf ATTR=NAME:Submit&&VALUE:I<SP>agree<SP>-<SP>continue<SP>sign<SP>
;up
wait seconds=1

However the string it actually inputs is: CowBoyBeebopXvj5ks21o73kdp4if9md5jp47__undefined__

Question is:  How do I get it to put out the string as you may have guessed I want it being output like?

Name: Anonymous 2010-01-18 14:05

what
also use [code] tags for a better /prog/ thank you

Name: Anonymous 2010-01-18 15:06

Where's the 2get poet when we need him?

Name: Anonymous 2010-01-18 15:53

I'm sorry if I broke any rules of this board.

I daren't say that I couldn't find them.

Essentially what I am doing is trying to solve the pattern [[:digit:]][[:alpha:]][[:alpha:]][[:digit:]].

I have generated a text file with all combinations and I have named every combination, from "name0" to "name67600".

When I try to get these into the add on "iMacros" it doesn't work. 

I would like someone to explain what is wrong with my code and what is needed to fix it.

Name: Anonymous 2010-01-18 15:57

I would like someone to explain what is wrong with my code and what is needed to fix it.
Wouldn't we all!

Name: Anonymous 2010-01-18 16:00

Stop using iMacros.

Name: Anonymous 2010-01-18 16:23

iMacros was the tool that was needed for this job.
The other languages I know would have been too much effort for a simple job like this.

Also, this has troubled me.  I'm unable to think of what is causing the error.  Leaving it and making a new program to solve this problem would only leave me empty.  Hopefully learning why this does this will help me with later projects.

Name: Anonymous 2010-01-18 16:48

The other languages I know would have been too much effort for a simple job like this.
Simple, eh... so simple, you came to /prog/ for help? As simple as [code] tags? Just how simple is it, really?

Name: Anonymous 2010-01-18 17:41

I believe I already answered your question.  The statement was also questioned. 
>>4
>I would like someone to explain what is wrong with my code and what is needed to fix it.

However I shall go in more depth for you if you wish.

The theory behind it is simple.  The problem is finding out why it shouldn't be doing what it is suppose to do.
It should have taken 3 minutes to write this code and get it running.  However my lack of knowledge and experience with the iMacros language has stopped me continuing, not due to how hard it is.
The problem domain of the script is small. 
SET !DATASOURCE input.txt
SET !VAR1 CowBoyBeebopXvj5ks21o73kdp4if9md5jp47{{name!LOOP}}


Either I have not set up my input.txt properly or the end of the SET command is incorrect.
I have seen examples they themselves use of this getting data from a file, http://wiki.imacros.net/Form_Filling#Input_from_List_of_Variables_File, and about the concatenation they used, http://wiki.imacros.net/ONDOWNLOAD#Examples

I see no problem with the commands yet there is one.  I am stumped.

Simple?  Yes.  Solvable by me?  No.  That is why I ask, to draw upon someone else's experience to solve this minor problem.

Name: Anonymous 2010-01-18 18:03

iMacros looks like shit. Have you tried this?


ATTR=ID:register_username CONTENT= CowBoyBeebopXvj5ks21o73kdp4if9md5jp47{{name!LOOP}}

Name: Anonymous 2010-01-18 18:04

s/CONTENT= /CONTENT=/*

* This means that you should omit the space after CONTENT=.

Name: Anonymous 2010-01-18 18:48

>>10
Thank you for attempting; however it still returns CowBoyBeebopXvj5ks21o73kdp4if9md5jp47__undefined_

That is the reason I put the string into a variable; to see if I could debug it.

If I run
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regf ATTR=ID:register_username CONTENT={{!LOOP}}
It returns whatever the !LOOP variable is.

As soon as I make it
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regf ATTR=ID:register_username CONTENT={{name!LOOP}}
the undefined output is given.

Testing with concatenation:
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regf ATTR=ID:register_username CONTENT=test{{!LOOP}}
This will return the string "test1" where !LOOP = 1.

This leads me to believe I have made an error in the input.txt
If I did make a error with the file iMacros would bring it up.
When there is no file it tells me.  The document conforms to the standards given at http://wiki.imacros.net/Form_Filling#Input_from_List_of_Variables_File

When this code is attempted
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:regf ATTR=ID:register_username CONTENT={{name!LOOP}}
The same undefined error occurs.

I reduced the size of my file to have only 3 entries, name1=test, name2=hello and name3=bye
The same error.

This leads me to believe that {{name!LOOP}} isn't been treated as their website leads me to believe.  I believe it is being treated as if the variable name was name!LOOP instead of changing !LOOP to the value of !LOOP

Unless there is something I've looked over and missed, I don't believe I am wrong.  Unless anyone is able to show me where I think I'll have to contact the producers of iMacro's.

Name: Anonymous 2010-01-18 19:00

>>12
what browser are you using? from the documentation it appears as though this functionality is only supported in the IE version.

Name: Anonymous 2010-01-18 19:05

>>13
Firefox...

Thank you for this enlightenment.  Can you link me to where it says it is IE only?

Something like this is not something I'd usually address and wouldn't know to check if it was compatible with firefox when the add on is for firefox.

I'll go and install it in IE and check how the script works then.

Name: Anonymous 2010-01-18 19:05

>>12,13

also

I believe it is being treated as if the variable name was name!LOOP

you may be able to test this by making one of your entries in your txt file name!LOOP=. but that could also just break it in general and tell you nothing.

Name: Anonymous 2010-01-18 19:06

>>15
I can do that now and then IE later.

Name: Anonymous 2010-01-18 19:08

>>14
http://wiki.imacros.net/Form_Filling#Input_from_List_of_Variables_File

Note the icons next to that heading; the Firefox logo is missing. If this is actually the problem then you have every right to be absolutely furious.

Name: Anonymous 2010-01-18 19:08

>>15 >>16
Same error.  Off to IE.
Also:  Thanks for reminding me about testing that theory.

Name: Anonymous 2010-01-18 19:29

>>17
It works in IE after some buggering about (IE version throws out errors where there is non but apparently can be ignored).

That is the problem. 

I would have missed that.

Thank you.  Time to write a email.

Name: Anonymous 2011-01-31 20:40

<-- check em dubz

Don't change these.
Name: Email:
Entire Thread Thread List