Skip to content

Conversation

@Queuebee
Copy link

Hello @OrangeTux,

This might seem like an odd request, 4 years after the original repo was created, but I'd really appreciate to learn from this code and make it work again (by learning why it doesn't work right now)
I have very little programming experience....

Tried solving the errors, now the program "runs", but it doensn't detect the right button to press.

I don't understand the code in utils.py on line 58. please explain this to me.

I've been wrestling with making a bot myself for 2 weeks now, I will re-push my (deleted) repo when I manage to .gitignore a screenshot....

old python2 syntax doesn't work anymore so I had to change 'print e' to print(e)
no clue why it returned some float that the next function, img.crop() can't use? IDK what I'm doing
in python3, reduce was removed from the core thingy so I had to explicitly import the functools module
@OrangeTux
Copy link
Owner

Good that you reach out to me, even after 4 year! I'm happy to help and I'll look into your questions tonight when I've some spare time.

@Queuebee
Copy link
Author

Thanks for the quick reply, I don't know how to explain how hyped I am now!

@OrangeTux
Copy link
Owner

OrangeTux commented Nov 15, 2017

From what I remember you could solve the captcha by clicking on this icon in a series of 4 different icons.

The function captcha worked by iterating of those 4 icons and compare them with the icon with gun. You can compare images by calcuting the the Root Mean Square Eucledian distance of those images. I think linke 58 is inspired by this StackOverflow thread. The icon that has the smallest RMS is probably the correct icon.

About adding a screenshot to your .gitignore file. A screenshot is just like any other file. You can add it's name to the .gitnore file or use a wildcard like so *.png. This wil ignore all files ending on .png.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants