Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Download https://launchpad.net/sikuli/sikulix/1.0.1/+download/sikuli-setup.jar
- 2. Put it in a new folder, anywhere should work.
- 3. Run sikuli-setup.jar
- If you run into an error:
- a. Right click on computer and go to Properties
- b. Advanced system settings
- c. Environment Variables... (it's on the bottom)
- d. For user variables, click on New...
- e. In Variable name, enter JAVA_HOME
- f. In Variable value, enter in the Java directory that leads to jre/jreX
- Mine was C:\Program Files\Java\jdk1.8.0_45\jre
- g. Click OK a bunch and close that crap out
- h. Log out and log back in or restart
- i. Run sikuli-setup.jar again.
- If that doesn't work try looking at the debug logs or whatnot, or wait til I get back.
- 4. Install Pack 1, the rest are unnecessary
- 5. sikuli-ide.jar should be there now, open that
- 6. Press OK without entering anything
- 7. Paste in this code: http://pastebin.com/raw.php?i=zHuzMhR4
- 8. For line 2, delete REPLACE_ME and click on Create Region
- 9. Select the area you want the script to watch over
- 10. (I'm guessing) the value in line 7 is the margin of error. It set to 99% (0.99) so you can change that.
- 11. Line 9 is the key it 'presses' when the image is found
- 12. Line 10 is the time in seconds is waits until it scans for the next split image
- 13. Have the image(s) you want it to split it on screen
- 14. For line 11, delete FILL_ME_IN, SEPARATE_WITH_COMMAS and click Take Screenshot
- 15. Capture the image you want it to split it when it sees it
- 16. If you want to add more, enter a comma and repeat
- 17. Save the script inside the same folder
- Now feel free to Run it.
- It says Alt+Shift+C stops the script but it doesn't for me; I have to kill it in task manager.
- If I forgot anything common sense should get you through
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement