alabamafreddie 1 Posted August 7, 2013 Report Share Posted August 7, 2013 Ok, I am creating a define command for a series of steps that I always repeat in my bot..involving : wait : so bewtween 0 and 15 seconds & wait for browser event everything loaded So now when I type and drag my custom command it gives me a field box with my custom commandname. So if I put 1...is that number of cycles or seconds that this command will run ...? I have defined the number of seconds already...so I am confused.... Quote Link to post Share on other sites
ecbzh 47 Posted August 7, 2013 Report Share Posted August 7, 2013 Edit your define command and click the - sign ... 1 Quote Link to post Share on other sites
the_way 52 Posted August 19, 2013 Report Share Posted August 19, 2013 you have added a parameter input to your function by the sounds of it. if you don't know what that means then you should remove it. You don't need it for a basic define, and once you get the hang of using them more you can start to add parameters in. Quote Link to post Share on other sites
Pete 121 Posted August 19, 2013 Report Share Posted August 19, 2013 loop(10) { navigate("http://www.bing.com/", "Wait") PageLoadWait() navigate("http://www.google.com/", "Wait") PageLoadWait() } define PageLoadWait { wait($rand(0, 15)) wait for browser event("Everything Loaded", 15) } Quote Link to post Share on other sites
UBotDev 276 Posted August 19, 2013 Report Share Posted August 19, 2013 Yeah, as quite_interesting said, it looks like you used parameter for define function, which only passes the value you enter to local variable with name you defined in define command. Since you are not passing that variable to "wait" command, entering the value into "field box" won't effect delay time. If you are not using threads you don't need parameters, so you can remove the parameter by clearing out parameter name in define node. However, the best way to code define commands is to use parameters, so you can also use them in threaded versions, so here is an example with parameter: WAIT CUSTOM(1) define WAIT CUSTOM(#DEF SECONDS) { wait(#DEF SECONDS) } I hope that helps. 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.