addamroy 36 Posted September 15, 2011 Report Share Posted September 15, 2011 I just saw the update today when I opened Ubot that the "UI HTML panel fields will be preloaded when UBOT starts". Can someone please explain to me how this works and if I have any control over what's preloaded into these fields? Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted September 15, 2011 Report Share Posted September 15, 2011 Can you elaborate more on preloaded UI HTML panel fields? Quote Link to post Share on other sites
addamroy 36 Posted September 15, 2011 Author Report Share Posted September 15, 2011 Can you elaborate more on preloaded UI HTML panel fields? That's what I'm trying to find out, this was a note in a software update prompt I received when I opened ubot today. Quote Link to post Share on other sites
Eddie Waller 158 Posted September 15, 2011 Report Share Posted September 15, 2011 It means when you have a ui html panel that has a text box or select box pre filled with a value, we load that into a variable immediately, instead of only loading it into a variable if something changes in the ui html panel. Quote Link to post Share on other sites
kevindj 0 Posted September 15, 2011 Report Share Posted September 15, 2011 @LoWrIdErTJ i have a problem. Can you pm me your email address? i need to contact you soon.Thanks Quote Link to post Share on other sites
DarkAngel 10 Posted September 15, 2011 Report Share Posted September 15, 2011 It means when you have a ui html panel that has a text box or select box pre filled with a value, we load that into a variable immediately, instead of only loading it into a variable if something changes in the ui html panel. Hi Eddie, I tried to do this but it's still not loading it into a variable for me. Can you please provide a working example of this? I am trying to preload vaules using the "$read file" function. Quote Link to post Share on other sites
Eddie Waller 158 Posted September 15, 2011 Report Share Posted September 15, 2011 Hi Eddie, I tried to do this but it's still not loading it into a variable for me. Can you please provide a working example of this? I am trying to preload vaules using the "$read file" function. Sure, here's an example ui html panel("<input type=\"text\" value=\"my text\" variable=\"#var1\">", 45) When you load that bot the variable #var1 should be set to "my text". Quote Link to post Share on other sites
DarkAngel 10 Posted September 16, 2011 Report Share Posted September 16, 2011 Sure, here's an example ui html panel("<input type=\"text\" value=\"my text\" variable=\"#var1\">", 45) When you load that bot the variable #var1 should be set to "my text".Is it possible to preload the text box variable value by reading a file, like it was in v3.5?I have been trying to do this, but have not been successful so far in v4. Quote Link to post Share on other sites
Eddie Waller 158 Posted September 16, 2011 Report Share Posted September 16, 2011 Is it possible to preload the text box variable value by reading a file, like it was in v3.5?I have been trying to do this, but have not been successful so far in v4. Could you elaborate on what you are trying to do? Are you talking about in the ui html panel? If you show how you would do it in v3 I can explain better if and how it is possible to do what you want . Quote Link to post Share on other sites
addamroy 36 Posted September 17, 2011 Author Report Share Posted September 17, 2011 good question about populating ui elements from a file, I've been wanting to see this for a while, i think it would be very beneficial. What he means I think eddie, if I had to provide an example... The end user would be able to click a 'load' button for example at which point the user could pre-populate the UI elements with values from say, a previous project. Or, another example would be, the developer wanting to populate the fields with some default value when bots are opened. Quote Link to post Share on other sites
rvdb 0 Posted May 21, 2012 Report Share Posted May 21, 2012 Hi All, This is exactly what ive been looking for a few hours. Any progress ? With regards, Robin good question about populating ui elements from a file, I've been wanting to see this for a while, i think it would be very beneficial. What he means I think eddie, if I had to provide an example... The end user would be able to click a 'load' button for example at which point the user could pre-populate the UI elements with values from say, a previous project. Or, another example would be, the developer wanting to populate the fields with some default value when bots are opened. Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted May 21, 2012 Report Share Posted May 21, 2012 You can do that now, with UI button in there, drag in the set variable, in that add the prompt function.it will prompt the user to enter a name of the project (ie folder name where files are stored) then set your variable's with the read file attributes from the folder they supplied in prompt, and it will update your UI area items. Quote Link to post Share on other sites
addamroy 36 Posted May 22, 2012 Author Report Share Posted May 22, 2012 lowrider that sounds awesome, but I'm barely not quite following. Can you explain that again please?? differently somehow. 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.