LoWrIdErTJ - BotGuru 904 Posted December 30, 2011 Report Share Posted December 30, 2011 Link to tutorial on Define Command or Function as well as Parameters http://www.botguru.net/ubot-studio-tutorials/define-command-or-function-ubot-studio-v4-tutorial/ I have begun the tutorial section of the BotGuru.net website. This is the first of many more to come. Have specifics you want tutorials on feel free to send me some details on what your needs are. Quote Link to post Share on other sites
odeesuba 24 Posted December 30, 2011 Report Share Posted December 30, 2011 TJ, Very well explained. thank you Two things that I learned , and they could be bugs 1. Sometimes functions should be on top 2. Sometimes you need to set the variables you pass to commands and functions I did not run into these problems before, but I will be checking them in the future. Thanks again. Quote Link to post Share on other sites
Lombi 34 Posted December 30, 2011 Report Share Posted December 30, 2011 Actually that's incorrect and completely unnecessary. You do not need to redefine a variable since the parameter is automatically that variable.Just remove those two nodes and it works fine. define burek(#sirov, #burek) { navigate("http://www.google.com", "Wait") type text(<name="q">, "{#sirov}{#burek}", "Standard") } burek("this works", "without duplicate set commands") Quote Link to post Share on other sites
odeesuba 24 Posted December 30, 2011 Report Share Posted December 30, 2011 Actually that's incorrect and completely unnecessary. You do not need to redefine a variable since the parameter is automatically that variable.Just remove those two nodes and it works fine. define burek(#sirov, #burek) { navigate("http://www.google.com", "Wait") type text(<name="q">, "{#sirov}{#burek}", "Standard") } burek("this works", "without duplicate set commands") I think TJ found that you need to set them sometimes not always, that is why I said it could be a bug. Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted December 30, 2011 Author Report Share Posted December 30, 2011 thats correct currently there is a issue sometimes where it is not being set. so having the set attribute cant hurt by having it in there to make sure its being set. Quote Link to post Share on other sites
Lombi 34 Posted December 31, 2011 Report Share Posted December 31, 2011 That might be the case (I haven't noticed any problems with them passing), but you're still essentially saying that #one=#one so if it doesn't get passed/set in the first place, it doesn't get "re-set" on any of the later commands, no matter how many you put in there... Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted December 31, 2011 Author Report Share Posted December 31, 2011 Im just telling you what had to be done in one of the recent situations someone was passing variables, and it wouldn't pass them without re-setting the variable to exactly what it was. 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.