addamroy 36 Posted July 12, 2014 Report Share Posted July 12, 2014 So here's what I have going on. I'm making a Bot that's going to utilize a .pre-existing CSV file that the user has on their computer. The table has 2 columns. One for Item name and one for Item value. I'm trying to So far the bot will create a list for each column, one list for items, one list for values. Now when the bot is loaded, I have an on-load command that will populate a DIV in the Ui html panel, displaying an empty text box field for each item the user may have in the CSV file. The text area is used for the user to input a "quantity". I plan to multiply the "quantity" entered by the user, by the "value" for that item in the CSV file which has been added to a list. My problem is I can't for the life of me figure a way to retrieve the user entered data from these fields populated in the UI HTML panel... The issue is I cannot assign a variable to each field because UBOT doesn't support dynamic variables, otherwise I would just create a variable for each item in the csv file and use it's value... So I am super stuck here, there's gotta be some way to retrieve this user entered data from the UI HTML panel. The reason I'm using the UI HTML Panel is because I keep the browser hidden, as it is no use to me for this, otherwise I would just write to browser then scrape that... Ugh, working on something I think is so awesome and I came to a hugely major road block lol. Any help would be appreciated! Quote Link to post Share on other sites
pftg4 102 Posted July 12, 2014 Report Share Posted July 12, 2014 you need to give the div a varaible Quote Link to post Share on other sites
addamroy 36 Posted July 12, 2014 Author Report Share Posted July 12, 2014 That's not possible, because you cannot create variable names from lists or tables. Quote Link to post Share on other sites
addamroy 36 Posted July 12, 2014 Author Report Share Posted July 12, 2014 I've thought about writing the HTML to a new browser window, because I could scrape each one by DIV ID that way, without the need to create variables, but unfortunately you cannot use a "in new window" command while your 'hide browser' option is selected in the dev compile settings. Quote Link to post Share on other sites
darryl561 177 Posted July 13, 2014 Report Share Posted July 13, 2014 The reason I'm using the UI HTML Panel is because I keep the browser hidden, as it is no use to me for this, otherwise I would just write to browser then scrape that... Wouldn't it be better to NOT use the UI HTML Panel. If you are not using the browser to show what the bot is doing, then just use the browser for your ui so you can scrape it.Then whatever commands your bot runs can be run in a new(hidden) browser. And no need to select "Hide Browser" when you compile, unless I'm missing something here. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.