Switching Regoins
This is a bit complicated.
In my program, I'm trying to look at three cards.
One card have a C another has a UC and another has a R.
I did a find all, to get all of the cards.
I did this to get all of the sizes of the cards:
Rectangle left_side_size = new Rectangle(
Rectangle right_side_size = new Rectangle(
Rectangle middle_size = new Rectangle(
System.
I did this to verify the sizes are good:
My screenshots are correct.
I do this to set the new region.
if (current_card_count == 0)
if (current_card_count == 1)
if (current_card_count == 2)
I tried set rect as well, but that didn't seem to work.
My goal is to start off with the most powerful card first, so I need to scan each card. Next, I need to compare each one to see which is the most powerful. I think I have the code right, but nothing is happening.
Let me know if you have any questions or comments.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Jeremy for more information if necessary.