Jump to content
UBot Underground

Here's Wild and Crazy Idea!!


Recommended Posts

I wonder if it's in ubot's interest to increase the flexibility of tables and let us populate a table with text, much like a list?

 

Don't know if it makes sense, but it's just an idea.

 

Frank

Link to post
Share on other sites

Not yet sure Buddy. I know about those two commands and very powerful they are, but I'm just not sure. I'm thinking that this is more a algorithm problem, then it is a ubot want.

 

I had a wicked problem of trying to manipulate many variables at once and the only real trick would be to use tables. But tables cannot be added to like a 'add to list' command. At least, not being able to just tack it onto the end easily.

 

I think that I may need to keep the functionality of tables and lists straight in my mind. They are two different beasties.

 

Frank

Link to post
Share on other sites

Ok, further research. What this problem is stemming down to is the fact that i'm assigning like 30 different variables on the start of a bot. Now, to speed things up, I have setup the code to pull the data out of a table, but there just isn't any clean way to assign the values into the table. So, I have to resource to assigning 30 temporary variables and then set them to the table elements. It would be very nice to be able to use a ui command and set a table cell from there directly. So that's definitely one thing.

 

Frank

Link to post
Share on other sites

Frank I think it can be done. I am away from My computer to give an example.

 

Oh actually, I'll try to fireup my computer through TeamViewer on my iPhone. And see if I can do a quickie.. ;)

Maybe i didn't get you right, but we'll find out.

 

Feel free to shoot a PM if you need. Workarounds can alwYs be made.

 

Praney

Link to post
Share on other sites

There you go Frank, gotta say that i love this Teamviewer's iPhone app. i am 25 kms away from my computer and i can make bots. LOL.

 

Anyways it here is the script:frank-table-ui_praney.ubot

 

Let me know if thats what you meant?

 

Cheers!

 

Praney

Link to post
Share on other sites

Hey Praney,

 

Great work! Talk about long distance, lol.

 

But there is a fly in the mix. Try it in a ui window. Doesn't work.

 

Frank

Link to post
Share on other sites

I see what you mean, its the same when you're working with tables in a script and you include the script to a main script, you can't use tables in the included script. I had this issue before.

 

Seems like tables are local elements of a script and ui window and included script become foreign compartments, thus no access to local table elements.

 

I think this becomes a limitation then.

Link to post
Share on other sites

My Bad Frank, table cell command is basically used to grab the content of a table cell, whereas, set table cell is the right command to be used for this purpose, but unfortunately, it doesn't seem to fit in the scenario.

 

LOL, seems like the small screen of my iPhone wasn't enough to figure that issue.,, hah!

Link to post
Share on other sites

was what I was trying to do with tables instead of variables. You see, I am assigning over 30 variables instead of just plunking the values into one table. But when using ui elements, it wants a variable.

 

Frank

Link to post
Share on other sites
  • 1 year later...

In regards to the original issue of manipulating tables pretty much as easy as the lists, there is a simple workaround to that matter:

  1. You add everything you want to a list instead of table, pretty much just as you want.
  2. Then, SAVE the list as a .csv file
  3. Then, load it back from .csv, but as a table this time.

 

Much easier than looping through rows and columns to set each table cell separately.

 

HTH

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...