Guest User

Untitled

a guest
Aug 19th, 2019
66
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. SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
  3. SetKeyDelay, 0, 200
  4.  
  5. Healer:="QueenSa"
  6. Tank:="Queenk"
  7.  
  8. FlyffWindowName:="Dragon Crusade - Connected To "
  9. HealerWindow:=FlyffWindowName . Healer
  10. TankWindow:=FlyffWindowName . Tank
  11.  
  12. Toggle=0
  13.  
  14. !b::
  15. SetKeyDelay, 1300, 500
  16. ControlSend,, 2{F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}3{F1}{F2}{F3}{F4}1, %HealerWindow%
  17. SetKeyDelay, 0, 200
  18. return
  19.  
  20. ;SOLO HEAL MODE
  21. !Home::
  22. Toggle := !Toggle
  23. ToolTip, %Healer% healing %Tank% now, 0, 0
  24. loop
  25. {
  26. If not Toggle
  27. break
  28. if WinActive(TankWindow) {
  29. PixelGetColor, mouseColor, 211, 65
  30. Red:="0x" SubStr(mouseColor,7,2)
  31. Red:=Red+0
  32. if (Red < 142) {
  33. ControlSend,, {F1}, %HealerWindow%
  34. }
  35. Sleep, 50
  36. }
  37. }
  38. ToolTip
  39. return
  40.  
  41. ;MULTI HEAL MODE
  42. +Home::
  43. Toggle := !Toggle
  44. ToolTip, Multi healing is turned on, 0, 0
  45. loop
  46. {
  47. If not Toggle
  48. break
  49. if WinActive(TankWindow) {
  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}, %HealerWindow%
  56. } else {
  57. Sleep, 50
  58. }
  59. }
  60. }
  61. ToolTip
  62. return
  63.  
  64. Home::
  65. Toggle := false
  66. ToolTip
  67. return
RAW Paste Data