some_guy 11 Posted March 1, 2010 Report Share Posted March 1, 2010 I have a bot which has many different yet similar functions (social network signup) The signup sub is nearly the same each time with a few changesThe catpcha routine is nearly the same. Should I be able to copy the sub from one script, and paste it to another. Then right click the sub name, select insert string and change the name of the sub to a unique variable. This then throws an error about a key. I click refresh and it carries on (or so I thought). I was pretty sure this was working (not 100%). Now when am testing the bot, the run sub is being skipped. I have to copy the sub name from the sub block and paste it into the parameter for the rub sub. This then works. Question is, should copy and pasting whole subs and changing the name work or is this wrong and I should really start each sub from scratch (due to id/ key assignment or something) Quote Link to post Share on other sites
cervant41 2 Posted March 1, 2010 Report Share Posted March 1, 2010 I ran into that same problem and got around it like you did. Although I think if you edit the sub, and then simply refresh the bot, you should be ok too. My problem was that by refreshing i was resetting a ton of user var's needed for testing Quote Link to post Share on other sites
greencat 18 Posted March 1, 2010 Report Share Posted March 1, 2010 Copying and pasting subs from other scripts works OK for me. You do need to hit refresh though. I can't help wondering if we all shouldn't be sharing more of our subs as I wouldn't mind betting that many of us are trying to do similar things. Quote Link to post Share on other sites
LazyHippy 1 Posted March 2, 2010 Report Share Posted March 2, 2010 My problem was that by refreshing i was resetting a ton of user var's needed for testing That gets really annoying after a while. Now I don't use the UI (or I add it at the end), instead I use a set_vars sub to hold all the variables. Quote Link to post Share on other sites
ILoveUBot 10 Posted March 2, 2010 Report Share Posted March 2, 2010 I use a set_vars sub to hold all the variables. That's a great suggestion - thanks. 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.