Jump to content

Recommended Posts

Ok, I was wondering how I could make it so that AutoIt 3.0 will detect if an error happens when running a game. I'm trying to make it so that if the bot is trying to login, and it receives an error, the bot will stop.

Is this possible?

<{POST_SNAPBACK}>

If the login error box appears in the same position every time and the OK/CANCEL button(s) are a different colour than the background, I'd use PixelSearch to search for the button. Providing that no other dialogue boxes appear there. You'd also have to use PixelSearch to test for a correct login sequence.

The other option is to build an OCR.

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Link to post
Share on other sites

Would Pixelsearch check for the "text information" that the error box pops up?

<{POST_SNAPBACK}>

No, Pixelsearch is only for colour detection. You could use pixelsearch to create an OCR (optical character reader) to read the text, but it is a very daunting task.

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Link to post
Share on other sites

So, do you have any other good ideas I can use to read the "error" from the game?

<{POST_SNAPBACK}>

Not really, if the Window Spy can't see the text, then there's really no way to get it. You could try a ControlGetText on the field, but ... I really don't think that will work. It's worth a try though.

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...