G-Man 0 Posted January 15, 2010 Report Share Posted January 15, 2010 So I wanted to populate a listbox with a list of items I retrieved. At the beginning of my script, I cleared the list. Then I tried to create the listbox immediately after that. When it asks what values to use, I inserted the listbox that will be populated at run time. Proceeding further, I get some nifty error about not being able to convert (some long number) to a string. I watched the tutorial on ui items but it shows putting the items in statically rather than at runtime. What am I doing wrong? G-Man Quote Link to post Share on other sites
Aaron Nimocks 19 Posted January 15, 2010 Report Share Posted January 15, 2010 You cant change values in the UI items so they would be displayed in the UI. Thats what you are trying to do, right? Quote Link to post Share on other sites
G-Man 0 Posted January 15, 2010 Author Report Share Posted January 15, 2010 You cant change values in the UI items so they would be displayed in the UI. Thats what you are trying to do, right? Not sure I understand your question. What I want to do is scrape a list of trends from the google hot trends. Then I want to display those values in a list box. Let the user select one and I would do something with that... G-Man Quote Link to post Share on other sites
Aaron Nimocks 19 Posted January 15, 2010 Report Share Posted January 15, 2010 Then you can't do that without saving the data in a text file and restarting the program. You cant create UI items on the fly. They are ALL generated when it is loaded. Quote Link to post Share on other sites
G-Man 0 Posted January 15, 2010 Author Report Share Posted January 15, 2010 Then you can't do that without saving the data in a text file and restarting the program. You cant create UI items on the fly. They are ALL generated when it is loaded. I see...hmmm... G-Man Quote Link to post Share on other sites
trumaj 0 Posted February 9, 2010 Report Share Posted February 9, 2010 Yeah, I see what G-Man means... I'm brand new to Ubot, and already there are couple of scripts I have tried to do where that kind of functionality would have greatly improved the usability of the script. Being able to populate the UI controls will values while processing the code (e.g. default values for users, etc) would greatly extend the usefulness of Ubot. 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.