Jump to content
UBot Underground

Manual Captcha Window - Need Advice


Recommended Posts

Hello :)

 

I am currently building a manual captcha option in one of my bots, 

purely because the built in one does not allow to refresh the captcha, 

so im trying to just load a HTML window with the captcha image, text box, submit button and refresh button, ...... simple,

 

But no matter what i do the captcha image will NOT show, 

I have even replaced the image location to images that i know show in other UI's 

but same result, ..

 

 

anyway, 

this is kids play and not something i have not done before, so im having a brain meltdown :/

 

here is the HTML window code :

<table width="100%" border="1" align="center" cellpadding="3" cellspacing="3" bordercolor="#FFF" style="background-color:#FFF"><center>
<tr>
<td height="166"><img src="#captchaurl"></td>
</tr>
<tr>
<td><textarea variable="#captcha answer" fillwith="value" style="width:300px;height:25px;font-size:12px;padding:5px;"></textarea></td>
</tr>
<tr>
<td><button class="stop" onclick="ubot.runScript('submit_capcha()')">Done</button> 
<button class="stop" onclick="ubot.runScript('refresh_capcha()')"> Refresh</button></td>
</tr>
</center></table>

Here is the source of the image that wont show (#captchaurl) :

*Image is downloaded prior to this

set(#captchaurl,"{$special folder("Application")}\\solve.jpg","Global")
 

Can anyone give me a boot in the right direction please ?

 

 

Thanks 

CJ

 

 

 

 

EDIT : Never mind, i got it, I converted the image to base64 and loaded into the HTML window that way, .... perfect :)

Link to post
Share on other sites

Ok, 

Ive hit another wall, 

 

The window and everything inside works great and im pretty happy with the end result, 

So i now have a manual captcha pop up with a refresh button 

 

However ....

 

The bot im working on has 18 main threads running at any 1 time, each will encounter a captcha,

so my question is now this, .. 

 

how will i make each captcha window that pops up know which image to show, 

i cant get around thinking i have to create 18 individual html windows each with its own image variable,

there must be an easier way ?

 

some one please help

Link to post
Share on other sites

Use a local variable and give each captcha a random ID. So each thread will have its own ID and remember which captcha is which through this local variable.

 

Of course !!!

 

It was staring me in the face all along,

 

I always forget "random" is there, 

 

Thanks man :)

 

Have a nice weekend

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...