After a script runs 50 times I want to add a different keystroke to the script, how do I code that?
Asked by
joel hatzfeld
I'm a user, not a developer so first I must say my apologies. Here is the code I'm using
for n in range(100):
wait(6)
type("T")
wait(20)
this code automates tedious farming in a video game, but after about 75 cycles it will stop because an item that a player uses will break. What I can't figure out while reading is how to add something like
after 60 cycles
type("1")
which will make a player use a new item, without stopping the script.
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:
To post a message you must log in.