Jump to content
UBot Underground

copy n pasting subs , code reuse etc


Recommended Posts

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 changes

The 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)

Link to post
Share on other sites

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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...