Frank 177 Posted October 21, 2010 Report Share Posted October 21, 2010 I'm running 3.342 and it is giving a weird new error. I have ui text box that sets a variable and then right after it, I'm setting the same variable to it's variable name with some text after. Now, first run after a 'refresh' all works well. But if I run the bot again, it will take the variable as it's last set value and add on the addition again. From what I understand, the variable SHOULD reset when run again to the text box value. Am I wrong in this? Frank Quote Link to post Share on other sites
Praney Behl 314 Posted October 21, 2010 Report Share Posted October 21, 2010 Hi Frank, Yes you are right it should update from the new input.It is working fine for me did a little sample for me, I am using the same version as you. But if I didn't get you right please post me up. Sample attached; PraneyFrank_Sample.ubot Quote Link to post Share on other sites
Frank 177 Posted October 21, 2010 Author Report Share Posted October 21, 2010 I ran your example by pressing the 'play' button twice and this is the result... In my opinion, every time I click the play button, the value SHOULD be set to the value in the ui text box. Nothing else makes sense. Frank Quote Link to post Share on other sites
Frank 177 Posted October 21, 2010 Author Report Share Posted October 21, 2010 ------- Quote Link to post Share on other sites
UBotBuddy 331 Posted October 21, 2010 Report Share Posted October 21, 2010 No, you are still adding to it. In essence you are doing X = X + "new text" You need another variable for accomplishing what you are attempting. Quote Link to post Share on other sites
UBotBuddy 331 Posted October 21, 2010 Report Share Posted October 21, 2010 What you enter in the UI never sees the light of day because you immediately over write it. Quote Link to post Share on other sites
UBotBuddy 331 Posted October 21, 2010 Report Share Posted October 21, 2010 Here is what i did http://screencast.com/t/yTlUJ8odtUA1 Quote Link to post Share on other sites
Seth Turin 223 Posted October 21, 2010 Report Share Posted October 21, 2010 so just to set this straight, ui controls set the variable whenever someone changes them. Quote Link to post Share on other sites
UBotBuddy 331 Posted October 21, 2010 Report Share Posted October 21, 2010 I think sort of a UI Monitor effect except to a variable specifically but Frank will have to clarify that as I may have deviated a bit. Quote Link to post Share on other sites
JohnB 255 Posted October 21, 2010 Report Share Posted October 21, 2010 I actually agree with both of you. Frank it does make sense that it should be a new run with fresh data, however, I think of it like this. If you ran a bot that created a list but did not include a "clear list"command a second run of that bot would add to the previous list. My thoughts on this are because you are still in the same "instance" (of the bot). Data doesn't clear by virtue of hitting the stop button or completing a run. Now, this is only how I see this, and I would only be right if the bot worked correctly on the first run, but not the successive runs. Just a thought. John Quote Link to post Share on other sites
Frank 177 Posted October 21, 2010 Author Report Share Posted October 21, 2010 Thank you all. To me, the variables should be set every run, not just on changes. To do what I want to do, I will have to use a 2nd variable, calling the first. A bit sideways in my opinion but it will do. Frank 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.