Advertisement
Guest User

Untitled

a guest
Aug 17th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn ; Enable warnings to assist with detecting common errors.
  3. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
  5.  
  6. global TypeSize = 40
  7. global ClassSize = 48
  8.  
  9. global X_TypeInitial = 847
  10. global Y_TypeInitial = 548
  11.  
  12. global X_ClassInitial = 855
  13. global Y_ClassInitial = 593
  14.  
  15. global X_RefineAll = 663
  16. global Y_RefineAll = 502
  17.  
  18. global X_1stSlot = 842
  19. global Y_1stSlot = 620
  20.  
  21. global X_TypeCurr = X_TypeInitial
  22. global Y_TypeCurr = Y_TypeInitial
  23.  
  24. global X_ClassCurr = X_ClassInitial
  25. global Y_ClassCurr = Y_ClassInitial
  26.  
  27.  
  28. RefineOnce(){
  29. Sleep, 50
  30. MouseMove ,X_1stSlot,Y_1stSlot
  31. Sleep, 150
  32. Send, {RButton}
  33. Sleep, 50
  34. MouseMove ,X_RefineAll,Y_RefineAll
  35. Sleep, 150
  36. Send, {LButton}
  37. Sleep, 20
  38. }
  39.  
  40. NextType(){
  41. X_TypeCurr+= %TypeSize%
  42. MouseMove ,X_TypeCurr,Y_TypeCurr
  43. Sleep, 100
  44. Send, {LButton}
  45. Sleep, 10
  46. }
  47.  
  48. NextClass(){
  49. X_ClassCurr+= %ClassSize%
  50. MouseMove ,X_ClassCurr,Y_ClassCurr
  51. Sleep, 50
  52. Send, {LButton}
  53. Sleep, 10
  54. }
  55.  
  56. ResetType(){
  57. X_TypeCurr = %X_TypeInitial%
  58. Y_TypeCurr = %Y_TypeInitial%
  59. }
  60.  
  61. ResetClass(){
  62. X_ClassCurr = %X_ClassInitial%
  63. Y_ClassCurr = %Y_ClassInitial%
  64. Sleep, 20
  65. MouseMove ,X_ClassCurr,Y_ClassCurr
  66. Sleep, 20
  67. Send, {LButton}
  68. Sleep, 200
  69. }
  70.  
  71. !a::
  72. Loop, 6{
  73. Loop, 3{
  74. RefineOnce()
  75. Sleep, 200
  76. NextClass()
  77. Sleep, 200
  78. }
  79. RefineOnce()
  80. Sleep, 200
  81. ResetClass()
  82. Sleep, 200
  83. NextType()
  84. Sleep, 200
  85. }
  86. reload
  87. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement