Jump to content
UBot Underground

About Tables


Recommended Posts

I've looked everywhere and couldnt find a tutorial on creating tables.

I cant get it to work.

 

Am I doing this right?

 

define test {

ui open file("Excel File To Process", #xcel)

create table from file(#xcel, &excel)

type text(<name="q">, $table cell(&excel, 1, 1), "Standard")

}

 

 

Thats in .csv and its not opened in excel. Thanks.

Link to post
Share on other sites

ui open file("Excel File To Process", #xcel)

define test {

create table from file(#xcel, &excel)

type text(<name="q">, $table cell(&excel, 1, 1), "Standard")

}

if($comparison(#xcel, "=", $nothing)) {

then {

alert("Please choose file first")

stop script

}

else {

navigate("google.com", "Wait")

test()

}

}

 

 

ps:ui commands must be outside define.

Link to post
Share on other sites

Tnx Rumen.

I have standard version, I cant copy paste that ehehe.

 

I tested it without Define earlier. I just had to put them there to be copy+pasted in bulk.

 

But is this right?

 

Create Table from CSV file >choose xcel as the table name

 

Then on the google form, access it ($tablecell) by calling column 1, row 1 of tablename xcel.

 

Because it does not work on my end.

Edited by Psychotix
Link to post
Share on other sites

Psychotix, Standard versions CAN paste code into their scripts. You just can't export it or have a code view.

 

1) Copy the above code to your clipboard

2) Right click on the Drag Comments Here box in your script

3) Click Paste.

Link to post
Share on other sites

You can copy and paste but you have to do it in sections. only allows you to copy and paste 1 section at a time.

 

Example

 

Copy paste

ui open file("Excel File To Process", #xcel)

 

 

Copy paste

define test {

create table from file(#xcel, &excel)

type text(<name="q">, $table cell(&excel, 1, 1), "Standard")

}

 

Copy paste

if($comparison(#xcel, "=", $nothing)) {

then {

alert("Please choose file first")

stop script

}

else {

navigate("google.com", "Wait")

test()

}

}

Link to post
Share on other sites

Ok i figured it out finally.

 

I arranged the CSV like this

 

A1 B1

A2 B2

A3 B3

 

I tell it to pull table location column 1, row 2.

 

It pulled B3!

 

So this thing starts at zero not 1.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...