Advertisement
Guest User

Untitled

a guest
Aug 18th, 2019
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. SetKeyDelay, 0, 200
  5.  
  6. !b::
  7. SetKeyDelay, 1000, 500
  8. ControlSend,, 2{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}3{F1}{F2}{F3}{F4}1,Dragon Crusade - Connected To QueenSa
  9. SetKeyDelay, 0, 200
  10. return
  11.  
  12. ;SOLO HEAL MODE
  13. #MaxThreadsPerHotkey 2
  14. !Home::
  15. Toggle := !Toggle
  16. IsHealing:=false
  17. ColorIs:=0
  18. loop
  19. {
  20.     If not Toggle
  21.         break
  22.     if WinActive("Dragon Crusade - Connected To Queenk") {
  23.         ;ToolTip, Solo Healing is %Toggle% l healing now %IsHealing% l color is %ColorIs%, 0, 0
  24.         PixelGetColor, mouseColor, 211, 65 ;124, 669
  25.         Red:="0x" SubStr(mouseColor,7,2)
  26.         Red:=Red+0
  27.         ColorIs:=Red
  28.         if (Red < 142) {
  29.             ControlSend,, {F1},Dragon Crusade - Connected To QueenSa
  30.             IsHealing:=true
  31.             ToolTip, I should be healing right now, 0,0
  32.         } else {
  33.             Sleep, 50
  34.             IsHealing:=false
  35.         }
  36.     }
  37.     ToolTip
  38. }
  39. return
  40.  
  41. ;MULTI HEAL MODE
  42. +Home::
  43. Toggle := !Toggle
  44. ToolTip, Multi Healing is %Toggle%, 0, 0
  45. loop
  46. {
  47.     If not Toggle
  48.         break
  49.     if WinActive("Dragon Crusade - Connected To Queenk") {
  50.         NumberInParty := 4
  51.         PixelGetColor, mouseColor, 127, % (NumberInParty-1)*34+510 ;start: 127, 510
  52.         Red:="0x" SubStr(mouseColor,7,2)
  53.         Red:=Red+0
  54.         if (Red > 243) {
  55.             ControlSend,, {F1},Dragon Crusade - Connected To QueenSa
  56.         } else {
  57.             Sleep, 50
  58.         }
  59.     }
  60. }
  61. return
  62.  
  63. Home::
  64. Toggle := false
  65. ToolTip
  66. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement