Advertisement
ROMaster2

Image Splitter

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