Advertisement
Guest User

Untitled

a guest
May 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.18 KB | None | 0 0
  1. import pyautogui
  2. import time
  3.  
  4. def get_pos():
  5. pos = pyautogui.position()
  6. print pos
  7.  
  8. def minimize():
  9. pyautogui.hotkey('alt', 'space')
  10. pyautogui.press('down')
  11. pyautogui.press('down')
  12. pyautogui.press('down')
  13. pyautogui.press('enter')
  14. print "[ + ] Minimizing"
  15.  
  16. def minimize():
  17. pyautogui.hotkey('alt', 'space')
  18. pyautogui.press('down')
  19. pyautogui.press('down')
  20. pyautogui.press('down')
  21. pyautogui.press('down')
  22. pyautogui.press('enter')
  23. print "[ + ] Minimizing"
  24.  
  25.  
  26.  
  27. #get_token
  28. pyautogui.moveTo(1282, 222, duration=1)
  29. pyautogui.click()
  30. print "[ + ] Clicking 'Get Token'"
  31.  
  32. #get User Access Token
  33. pyautogui.moveTo(1360, 252, duration=0.5)
  34. pyautogui.click()
  35. print "[ + ] getting user token"
  36.  
  37. #approve permissions
  38. pyautogui.moveTo(990, 722, duration=1)
  39. pyautogui.click()
  40. print "[ + ] Approving permissions"
  41.  
  42. #get_token
  43. pyautogui.moveTo(1282, 222, duration=1)
  44. pyautogui.click()
  45. print "[ + ] Clicking 'Get Token'"
  46.  
  47. #CapeMay County
  48. pyautogui.moveTo(1313, 440, duration=1)
  49. pyautogui.click()
  50.  
  51. #copy access token
  52. pyautogui.moveTo(608, 223, duration=1)
  53. pyautogui.doubleClick()
  54. pyautogui.hotkey('ctrl', 'c')
  55. print "[ + ] Copying access token"
  56.  
  57. #hit minimize in chrome
  58. pyautogui.moveTo(1588, 13, duration=1)
  59. pyautogui.click()
  60.  
  61. #open folder
  62. pyautogui.moveTo(192, 831, duration=1)
  63. pyautogui.doubleClick()
  64. print "[ + ] Opening folder"
  65. #maximize screen
  66. time.sleep(3)
  67. pyautogui.hotkey('alt', 'space')
  68. pyautogui.press('down')
  69. pyautogui.press('down')
  70. pyautogui.press('down')
  71. pyautogui.press('down')
  72. pyautogui.press('enter')
  73.  
  74. #open categoryDict
  75. pyautogui.moveTo(377, 172, duration=1)
  76. pyautogui.doubleClick()
  77. print "[ + ] Opening file"
  78.  
  79.  
  80.  
  81. #maximize screen
  82. time.sleep(3)
  83. pyautogui.hotkey('alt', 'space')
  84. pyautogui.press('down')
  85. pyautogui.press('down')
  86. pyautogui.press('down')
  87. pyautogui.press('down')
  88. pyautogui.press('enter')
  89.  
  90. print "[ + ] Maximizing screen"
  91.  
  92. #paste cape may county
  93. pyautogui.moveTo(363, 701, duration=1)
  94. pyautogui.doubleClick()
  95. print "[ + ] highlighting token"
  96. pyautogui.hotkey('ctrl', 'v')
  97. print "[ + ] Pasting token"
  98. pyautogui.press('home')
  99.  
  100. time.sleep(1)
  101. #maximize screen
  102. ##time.sleep(1)
  103. ##pyautogui.hotkey('alt', 'space')
  104. ##pyautogui.press('down')
  105. ##pyautogui.press('down')
  106. ##pyautogui.press('down')
  107. ##pyautogui.press('enter')
  108. ##print "[ + ] Minimizing Python Script"
  109.  
  110. #open chrome again
  111. pyautogui.moveTo(397, 1025, duration=1)
  112. pyautogui.click()
  113.  
  114. #get_token
  115. pyautogui.moveTo(1282, 222, duration=1)
  116. pyautogui.click()
  117. print "[ + ] Clicking 'Get Token'"
  118.  
  119.  
  120. pyautogui.moveTo(1255, 468, duration=1)
  121. pyautogui.click()
  122. print "[ + ] Clicking Atlantic County"
  123.  
  124. #copy access token
  125. pyautogui.moveTo(608, 223, duration=1)
  126. pyautogui.doubleClick()
  127. pyautogui.hotkey('ctrl', 'c')
  128. print "[ + ] Copying access token"
  129.  
  130. #hit minimize in chrome
  131. pyautogui.moveTo(1588, 13, duration=1)
  132. pyautogui.click()
  133. print "[ + ] Minimizing Chrome"
  134.  
  135. pyautogui.moveTo(342, 729, duration=1)
  136. pyautogui.doubleClick()
  137. pyautogui.hotkey('ctrl', 'v')
  138. pyautogui.press('home')
  139.  
  140. #open chrome again
  141. pyautogui.moveTo(397, 1025, duration=1)
  142. pyautogui.click()
  143.  
  144. #get_token
  145. pyautogui.moveTo(1282, 222, duration=1)
  146. pyautogui.click()
  147. print "[ + ] Clicking 'Get Token'"
  148.  
  149. #Gloucester County
  150. pyautogui.moveTo(1344, 510, duration=1)
  151. pyautogui.click()
  152. print "[ + ] Clicking 'Gloucester County"
  153.  
  154. #copy access token
  155. pyautogui.moveTo(608, 223, duration=1)
  156. pyautogui.doubleClick()
  157. pyautogui.hotkey('ctrl', 'c')
  158. print "[ + ] Copying access token"
  159.  
  160. #hit minimize in chrome
  161. pyautogui.moveTo(1588, 13, duration=1)
  162. pyautogui.click()
  163. print "[ + ] Minimizing Chrome"
  164.  
  165.  
  166. pyautogui.moveTo(622, 665, duration=1)
  167. pyautogui.doubleClick()
  168. pyautogui.hotkey('ctrl', 'v')
  169. pyautogui.press('home')
  170.  
  171. #open chrome again
  172. pyautogui.moveTo(397, 1025, duration=1)
  173. pyautogui.click()
  174.  
  175. #get_token
  176. pyautogui.moveTo(1282, 222, duration=1)
  177. pyautogui.click()
  178. print "[ + ] Clicking 'Get Token'"
  179.  
  180. #Camden County
  181. pyautogui.moveTo(1294, 546, duration=1)
  182. pyautogui.click()
  183. print "[ + ] Clicking 'Gloucester County"
  184.  
  185. #copy access token
  186. pyautogui.moveTo(608, 223, duration=1)
  187. pyautogui.doubleClick()
  188. pyautogui.hotkey('ctrl', 'c')
  189. print "[ + ] Copying access token"
  190.  
  191. #hit minimize in chrome
  192. pyautogui.moveTo(1588, 13, duration=1)
  193. pyautogui.click()
  194. print "[ + ] Minimizing Chrome"
  195.  
  196. pyautogui.moveTo(296, 681, duration=1)
  197. pyautogui.doubleClick()
  198. pyautogui.hotkey('ctrl', 'v')
  199. pyautogui.press('home')
  200.  
  201.  
  202. #open chrome again
  203. pyautogui.moveTo(397, 1025, duration=1)
  204. pyautogui.click()
  205.  
  206. #get_token
  207. pyautogui.moveTo(1282, 222, duration=1)
  208. pyautogui.click()
  209. print "[ + ] Clicking 'Get Token'"
  210.  
  211. #Salem County
  212. pyautogui.moveTo(1245, 552, duration=1)
  213. pyautogui.click()
  214. print "[ + ] Clicking 'Salem County"
  215.  
  216. #copy access token
  217. pyautogui.moveTo(608, 223, duration=1)
  218. pyautogui.doubleClick()
  219. pyautogui.hotkey('ctrl', 'c')
  220. print "[ + ] Copying access token"
  221.  
  222. #hit minimize in chrome
  223. pyautogui.moveTo(1588, 13, duration=1)
  224. pyautogui.click()
  225. print "[ + ] Minimizing Chrome"
  226.  
  227. pyautogui.moveTo(292, 750, duration=1)
  228. pyautogui.doubleClick()
  229. pyautogui.hotkey('ctrl', 'v')
  230. pyautogui.press('home')
  231.  
  232. #open chrome again
  233. pyautogui.moveTo(397, 1025, duration=1)
  234. pyautogui.click()
  235.  
  236. #get_token
  237. pyautogui.moveTo(1282, 222, duration=1)
  238. pyautogui.click()
  239. print "[ + ] Clicking 'Get Token'"
  240.  
  241. #Cumberland County
  242. pyautogui.moveTo(1347, 582, duration=1)
  243. pyautogui.click()
  244. print "[ + ] Clicking 'Get Token'"
  245.  
  246. #copy access token
  247. pyautogui.moveTo(608, 223, duration=1)
  248. pyautogui.doubleClick()
  249. pyautogui.hotkey('ctrl', 'c')
  250. print "[ + ] Copying access token"
  251.  
  252. #hit minimize in chrome
  253. pyautogui.moveTo(1588, 13, duration=1)
  254. pyautogui.click()
  255. print "[ + ] Minimizing Chrome"
  256.  
  257. pyautogui.moveTo(253, 713, duration=1)
  258. pyautogui.doubleClick()
  259. pyautogui.hotkey('ctrl', 'v')
  260. pyautogui.press('home')
  261. pyautogui.hotkey('ctrl', 's')
  262.  
  263. #hit minimize in chrome
  264. pyautogui.moveTo(1588, 13, duration=1)
  265. pyautogui.click()
  266. print "[ + ] Minimizing Chrome"
  267.  
  268. pyautogui.moveTo(359, 383, duration=1)
  269. pyautogui.doubleClick()
  270.  
  271. #hit minimize in chrome
  272. pyautogui.moveTo(1588, 13, duration=1)
  273. pyautogui.click()
  274. print "[ + ] Minimizing Chrome"
  275.  
  276. pyautogui.press('f5')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement