voorash

RaidAdder for DOTD

Jun 12th, 2014
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #SingleInstance force
  2.  
  3. #.::
  4. KeyWait .
  5.  
  6.  
  7.  
  8. IfWinExist, Play Dawn of the Dragons | Armor Games - Mozilla Firefox
  9.     WinActivate
  10. else
  11.     return
  12.  
  13. Msgbox, Put the mouse over the topmost link in raidcatcher and press enter
  14. MouseGetPos, raidLinkX, raidLinkY
  15.  
  16. Msgbox, Put the mouse over the join button and press enter
  17. MouseGetPos, joinButtonX, joinButtonY
  18.  
  19. joinBoxX := joinButtonX-40
  20. joinBoxY := joinButtonY
  21.  
  22. click left %joinButtonX%,%joinButtony%
  23.  
  24. Msgbox, Put the mouse over the invalid raid button and press enter. You might need to move this message box first.
  25. MouseGetPos, errorBoxX, errorBoxY
  26.  
  27. Loop,10000
  28. {
  29. GetKeyState, state, Shift
  30. if state = D
  31.     return
  32. click left %errorBoxX%,%errorBoxY%
  33.  
  34.  
  35. click right %raidLinkX%,%raidLinkY%
  36. Sleep, 20
  37. Loop 6 {
  38.    Send {Down}
  39.    Sleep, 10
  40. }
  41.  
  42. Send {Enter}
  43.  
  44. IfWinExist, Play Dawn of the Dragons | Armor Games - Mozilla Firefox
  45.     WinActivate
  46. else
  47.     return
  48.  
  49. click left %joinBoxX%,%joinBoxY%
  50. click right %joinBoxX%,%joinBoxY%
  51.  
  52. Sleep,300
  53. Loop 6 {
  54.    Send {Up}
  55.    Sleep, 10
  56. }
  57. Send {Enter}
  58.  
  59. IfWinExist, Play Dawn of the Dragons | Armor Games - Mozilla Firefox
  60.     WinActivate
  61. else
  62.     return
  63.  
  64. Sleep,10
  65.  
  66. click left %joinButtonX%,%joinButtonY%
  67. Sleep, 1000
  68.  
  69. }
  70. return
Advertisement
Add Comment
Please, Sign In to add comment