0% found this document useful (0 votes)
176 views5 pages

SikuliX Game Automation Tutorial

This document provides an overview of low-level mouse and keyboard interactions that can be automated using SikuliX, such as mouse clicks, moves, wheel functions, and key presses. It then discusses writing automation scripts as an iterative process, as unexpected issues may occur. The example demonstrates creating a script to automate clicking, upgrading, and zone changing actions in the game Clicker Heroes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
176 views5 pages

SikuliX Game Automation Tutorial

This document provides an overview of low-level mouse and keyboard interactions that can be automated using SikuliX, such as mouse clicks, moves, wheel functions, and key presses. It then discusses writing automation scripts as an iterative process, as unexpected issues may occur. The example demonstrates creating a script to automate clicking, upgrading, and zone changing actions in the game Clicker Heroes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Game Example

SikuliX Tutorial #5
Low Level Interaction
• mouseDown(button)
• mouseUp(button)
• mouseMove(PSRML) or (xOff, yOff)
• wheel(PSRML, WHEEL_DOWN/WHEEL_UP, steps)
• keyDown(key / listOfKeys)
• keyUp(key / listOfKeys)
Automation Hints
• Writing automation scripts is an iterative process in
itself.
• There will be times when you have the logic set up,
but an unforeseen tooltip will pop up where the
mouse is sitting and the image recognition wont be
able to find the place to click.
• So don’t be annoyed if your script doesn’t work
first try!
The Example
• Let’s create a simple automation script that
will play the free game Clicker Heroes.
• We wont be spending too much time, so we
will only automate three aspect of the game.
• Clicking, upgrading, zone changing.
The End!
• Congratulations for making it this far!

• Feel free to leave any questions in the


comments.

You might also like