Well i need to know if is possible to do this:
When a window like the image pops up, get the random numbers and calculate, then select the right answer below by the result of the previous calculation and press enter. Every time is random numbers that shows and always (+) and (-). Example: 1+3, 2+6, etc or 10-1, 1-8, etc. Also the position of the results changes as well.
Find Text, do math, select right answer, enter
Moderators: JRL, Dorian (MJT support)
-
- Newbie
- Posts: 4
- Joined: Tue Nov 22, 2016 1:43 am
Find Text, do math, select right answer, enter
Last edited by orosama1235 on Tue Oct 01, 2019 3:19 am, edited 3 times in total.
- Dorian (MJT support)
- Automation Wizard
- Posts: 1417
- Joined: Sun Nov 03, 2002 3:19 am
Re: Find Text, do math, select right answer, enter
Hi Orosama,
I can't see your image. Can you post it please?
I can't see your image. Can you post it please?
-
- Newbie
- Posts: 4
- Joined: Tue Nov 22, 2016 1:43 am
Re: Find Text, do math, select right answer, enter
I did it right now, sorry, first post.
-
- Newbie
- Posts: 4
- Joined: Tue Nov 22, 2016 1:43 am
Re: Find Text, do math, select right answer, enter
I did it right now, sorry, first post.Dorian (MJT support) wrote: ↑Mon Sep 30, 2019 10:10 amHi Orosama,
I can't see your image. Can you post it please?
Sorry for the double post, dont know how to delete the previous answer.
- Dorian (MJT support)
- Automation Wizard
- Posts: 1417
- Joined: Sun Nov 03, 2002 3:19 am
Re: Find Text, do math, select right answer, enter
There are quite a few obstacles here, and these systems are designed to prevent humans from cheating in games. Getting around that isn't really what we're about at MJT.
I would imagine the question text is not grabbable, but you can try using the Text Capture Wizard.
If that fails, try OCRArea. OCR can be quite time consuming though and that may be a problem with your ten second time limit.
If you can manage to extract the question text, then the next step is to parse that text using a variety of string manipulation commands within Macro Scheduler.
Then, if you've got that far, you've got to make it answer the question. Maybe the Find Object Wizard can do that. Maybe.
Or maybe some of our other users have better ideas. This isn't something we routinely do.
I would imagine the question text is not grabbable, but you can try using the Text Capture Wizard.
If that fails, try OCRArea. OCR can be quite time consuming though and that may be a problem with your ten second time limit.
If you can manage to extract the question text, then the next step is to parse that text using a variety of string manipulation commands within Macro Scheduler.
Then, if you've got that far, you've got to make it answer the question. Maybe the Find Object Wizard can do that. Maybe.
Or maybe some of our other users have better ideas. This isn't something we routinely do.
-
- Newbie
- Posts: 4
- Joined: Tue Nov 22, 2016 1:43 am
Re: Find Text, do math, select right answer, enter
Ok, and what about just to find, select and press enter in a negative value between the anwers, the negative values is always the right and there is only one negative among the others. If there is no negative values, just press escape. That can solve the problem and is easier but i dont know how to do it..
- Dorian (MJT support)
- Automation Wizard
- Posts: 1417
- Joined: Sun Nov 03, 2002 3:19 am
Re: Find Text, do math, select right answer, enter
Maybe try OCRarea again as the recent update has made it much faster. Once you have that text you can use Position to check if the minus symbol is present.
Of use Image Recognition on that small area and just look for the -
Of use Image Recognition on that small area and just look for the -