Advertisement
Guest User

Untitled

a guest
Jul 18th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.31 KB | None | 0 0
  1. ^r::
  2. Loop, 50
  3. {
  4. sleep 2000
  5. imagesearch, x, y, 0, 0, a_screenwidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\6.png
  6. MouseClick , left, X, Y, 1, 0
  7. sleep 800
  8. send, ^x
  9.  
  10. imagesearch, x, y, 0, 0, a_screenwidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\7.png
  11. MouseClick , left, X, Y, 1, 0
  12. send, ^+v
  13. sleep 800
  14. imagesearch, x, y, 0, 0, a_screenwidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\8.png
  15.  
  16. mousemove x, y, 0
  17. mousemove,5, 5, 0, R
  18. click
  19. sleep 800
  20. ImageSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\1.png ;first image it searchs for
  21. if(ErrorLevel = 2) {
  22. MsgBox, Could not conduct the search.
  23. } else if(ErrorLevel = 1) {
  24. ImageSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\2.png ;second image it searchs for
  25. if(ErrorLevel = 2) {
  26. MsgBox, Could not conduct the search.
  27. } else if(ErrorLevel = 1) {
  28. MsgBox, Icon could not be found on the screen.
  29. } else {
  30. MouseMove, X, Y, 0
  31. MouseMove, 10, 15, 50, R
  32. click
  33. }
  34. } else {
  35. MouseMove, X, Y, 0
  36. MouseMove, 10, 15, 50, R
  37. click
  38. }
  39.  
  40. sleep 800
  41. ImageSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\done.png ; looks for the done folder
  42. sleep 100
  43. MouseClick , left, %X%, %Y%, 1, 0
  44. sleep 800
  45. send, {Down}
  46. sleep 800
  47. send, ^x
  48. send {enter}
  49. sleep 800
  50. ImageSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\5.png ;looks for the no button
  51. MouseClick , left, %X%, %Y%, 1 ;clicks on the no button
  52. sleep 800
  53.  
  54. ImageSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\5.png ;looks for the no button
  55. MouseClick , left, %X%, %Y%, 1 ;clicks on the no button
  56. sleep 800
  57.  
  58. ImageSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, C:\Users\edwar.EDWARD-PC\Desktop\ahk 1\4.png ;looks for the OK button
  59. MouseClick , left, %X%, %Y%, 1 ;clicks on the OK button
  60. sleep 800
  61.  
  62. Run, C:\Users\edwar.EDWARD-PC\Desktop\New folder\done ;change this to the file dest you want the finished files to go to
  63. sleep 1800
  64.  
  65. click
  66. send ^v
  67.  
  68. sleep 800
  69. send ^w
  70.  
  71.  
  72. sleep 3000
  73.  
  74. }
  75. RETURN
  76.  
  77.  
  78.  
  79. ^e::
  80. Reload
  81. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement