Advertisement
jkCBWPnet

Ingot to blocks with xdotool on linux

Jul 31st, 2015
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 4.92 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # keybind this script for easy access
  4. # empty your entire inventory into dump chest
  5. # fill your entire inventory with ingots
  6. # press the keys from your keybind...
  7. # the coordinates for this script are based on absolute screen position not relative...
  8. # for example my screen is maximized for this script and it's size is 1680x1001,
  9. # the center of my top left inventory slot is 555,585 and the distance between centers is 70px for both x and y
  10. # I had a problem with minecraft recognizing the shift+click so I just had it click 64 times then placed the blocks.
  11. # still fairly fast. Does 4 stacks of blocks at a time...
  12.  
  13. xdotool mousemove 555 585 --sync
  14. xdotool click 1
  15. xdotool mousemove 640 320 --sync
  16. xdotool click 1
  17.  
  18. xdotool mousemove 625 585 --sync
  19. xdotool click 1
  20. xdotool mousemove 710 320 --sync
  21. xdotool click 1
  22.  
  23. xdotool mousemove 695 585 --sync
  24. xdotool click 1
  25. xdotool mousemove 780 320 --sync
  26. xdotool click 1
  27.  
  28. xdotool mousemove 765 585 --sync
  29. xdotool click 1
  30. xdotool mousemove 640 390 --sync
  31. xdotool click 1
  32.  
  33. xdotool mousemove 835 585 --sync
  34. xdotool click 1
  35. xdotool mousemove 710 390 --sync
  36. xdotool click 1
  37.  
  38. xdotool mousemove 905 585 --sync
  39. xdotool click 1
  40. xdotool mousemove 780 390 --sync
  41. xdotool click 1
  42.  
  43. xdotool mousemove 975 585 --sync
  44. xdotool click 1
  45. xdotool mousemove 640 460 --sync
  46. xdotool click 1
  47.  
  48. xdotool mousemove 1045 585 --sync
  49. xdotool click 1
  50. xdotool mousemove 710 460 --sync
  51. xdotool click 1
  52.  
  53. xdotool mousemove 1115 585 --sync
  54. xdotool click 1
  55. xdotool mousemove 780 460 --sync
  56. xdotool click 1
  57. e
  58. xdotool sleep 0.2
  59.  
  60. xdotool mousemove 1020 390 --sync
  61. for i in {1..64}
  62. do
  63. xdotool click 1
  64. done
  65. xdotool mousemove 1115 585 --sync
  66. xdotool click 1
  67.  
  68. xdotool mousemove 555 655 --sync
  69. xdotool click 1
  70. xdotool mousemove 640 320 --sync
  71. xdotool click 1
  72.  
  73. xdotool mousemove 625 655 --sync
  74. xdotool click 1
  75. xdotool mousemove 710 320 --sync
  76. xdotool click 1
  77.  
  78. xdotool mousemove 695 655 --sync
  79. xdotool click 1
  80. xdotool mousemove 780 320 --sync
  81. xdotool click 1
  82.  
  83. xdotool mousemove 765 655 --sync
  84. xdotool click 1
  85. xdotool mousemove 640 390 --sync
  86. xdotool click 1
  87.  
  88. xdotool mousemove 835 655 --sync
  89. xdotool click 1
  90. xdotool mousemove 710 390 --sync
  91. xdotool click 1
  92.  
  93. xdotool mousemove 905 655 --sync
  94. xdotool click 1
  95. xdotool mousemove 780 390 --sync
  96. xdotool click 1
  97.  
  98. xdotool mousemove 975 655 --sync
  99. xdotool click 1
  100. xdotool mousemove 640 460 --sync
  101. xdotool click 1
  102.  
  103. xdotool mousemove 1045 655 --sync
  104. xdotool click 1
  105. xdotool mousemove 710 460 --sync
  106. xdotool click 1
  107.  
  108. xdotool mousemove 1115 655 --sync
  109. xdotool click 1
  110. xdotool mousemove 780 460 --sync
  111. xdotool click 1
  112.  
  113. xdotool sleep 0.2
  114.  
  115. xdotool mousemove 1020 390 --sync
  116. for i in {1..64}
  117. do
  118. xdotool click 1
  119. done
  120. xdotool mousemove 1115 655 --sync
  121. xdotool click 1
  122.  
  123. xdotool mousemove 555 725 --sync
  124. xdotool click 1
  125. xdotool mousemove 640 320 --sync
  126. xdotool click 1
  127.  
  128. xdotool mousemove 625 725 --sync
  129. xdotool click 1
  130. xdotool mousemove 710 320 --sync
  131. xdotool click 1
  132.  
  133. xdotool mousemove 695 725 --sync
  134. xdotool click 1
  135. xdotool mousemove 780 320 --sync
  136. xdotool click 1
  137.  
  138. xdotool mousemove 765 725 --sync
  139. xdotool click 1
  140. xdotool mousemove 640 390 --sync
  141. xdotool click 1
  142.  
  143. xdotool mousemove 835 725 --sync
  144. xdotool click 1
  145. xdotool mousemove 710 390 --sync
  146. xdotool click 1
  147.  
  148. xdotool mousemove 905 725 --sync
  149. xdotool click 1
  150. xdotool mousemove 780 390 --sync
  151. xdotool click 1
  152.  
  153. xdotool mousemove 975 725 --sync
  154. xdotool click 1
  155. xdotool mousemove 640 460 --sync
  156. xdotool click 1
  157.  
  158. xdotool mousemove 1045 725 --sync
  159. xdotool click 1
  160. xdotool mousemove 710 460 --sync
  161. xdotool click 1
  162.  
  163. xdotool mousemove 1115 725 --sync
  164. xdotool click 1
  165. xdotool mousemove 780 460 --sync
  166. xdotool click 1
  167.  
  168. xdotool sleep 0.2
  169.  
  170. xdotool mousemove 1020 390 --sync
  171. for i in {1..64}
  172. do
  173. xdotool click 1
  174. done
  175. xdotool mousemove 1115 725 --sync
  176. xdotool click 1
  177.  
  178. xdotool mousemove 555 825 --sync
  179. xdotool click 1
  180. xdotool mousemove 640 320 --sync
  181. xdotool click 1
  182.  
  183. xdotool mousemove 625 825 --sync
  184. xdotool click 1
  185. xdotool mousemove 710 320 --sync
  186. xdotool click 1
  187.  
  188. xdotool mousemove 695 825 --sync
  189. xdotool click 1
  190. xdotool mousemove 780 320 --sync
  191. xdotool click 1
  192.  
  193. xdotool mousemove 765 825 --sync
  194. xdotool click 1
  195. xdotool mousemove 640 390 --sync
  196. xdotool click 1
  197.  
  198. xdotool mousemove 835 825 --sync
  199. xdotool click 1
  200. xdotool mousemove 710 390 --sync
  201. xdotool click 1
  202.  
  203. xdotool mousemove 905 825 --sync
  204. xdotool click 1
  205. xdotool mousemove 780 390 --sync
  206. xdotool click 1
  207.  
  208. xdotool mousemove 975 825 --sync
  209. xdotool click 1
  210. xdotool mousemove 640 460 --sync
  211. xdotool click 1
  212.  
  213. xdotool mousemove 1045 825 --sync
  214. xdotool click 1
  215. xdotool mousemove 710 460 --sync
  216. xdotool click 1
  217.  
  218. xdotool mousemove 1115 825 --sync
  219. xdotool click 1
  220. xdotool mousemove 780 460 --sync
  221. xdotool click 1
  222.  
  223. xdotool sleep 0.2
  224.  
  225. xdotool mousemove 1020 390 --sync
  226. for i in {1..64}
  227. do
  228. xdotool click 1
  229. done
  230. xdotool mousemove 1115 825 --sync
  231. xdotool click 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement