Make sikuli look for certain phrases and click offset link accordingly
So on this website there are certain games we want our bot to spectate.
Here is how it looks like: http://
from (www.untap.in) Free to play!
At first the game must be a "MTG" game.
The spectating bot should find phrases like (ALL case UNsensitive): "bng", "botg", "born" and click "Spectate" accordingly.
If there are non found then it should look for (ALL case UNsensitive): "std", "standard" and click "Spectate" accordingly.
When there is still nothing found it goes on and just clicks a random one.
So that's the code until now:
while True: # main loop
exists(
click(
exists(
import random
click(
exists(
while exists(
if exists(
break # end search loop and return to main loop.
else:
wait(2) # wait period before restarting loop
continue # continue search loop if "player has left game" is not found.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: