Advertisement
S1L1R

lazy_farm

Jan 25th, 2023 (edited)
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. global ui_theme := {voidTheme: {winOL: "ADADAD", alpOL: 255, winBG: "151515", alpBG: 180, title: "Montserrat Medium", titleCol: "86C8BC", titleSZ: 13, main: "Montserrat Medium", mainCol: "White", mainSZ: 13, info: "Montserrat Medium", infoCol: "FFF6BD", infoSZ: 13}}
  2. ui_theme := ui_theme.voidTheme
  3.  
  4. #include %A_AppData%\LazyHub\lib
  5.  
  6. #include headers.ahk
  7. #include timers.ahk
  8. #include utils.ahk
  9. #include custom_ui.ahk
  10.  
  11. #include game_settings.ahk
  12.  
  13. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  14. ;;               Globals               ;;
  15. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  16. cooldownInSec   := 20
  17. shouldAltTab    := True
  18.  
  19. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  20. ;;               Macros                ;;
  21. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  22. AfkNovaKey      = F2
  23. AnomalySpamKey  = o
  24.  
  25. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  26. ;;               Hotkeys               ;;
  27. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  28. Hotkey, *%AfkNovaKey%, AfkNova
  29. Hotkey, *%AnomalySpamKey%, AnomalySpam
  30.  
  31. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  32. ;;                 GUI                 ;;
  33. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  34. global ui := []
  35.  
  36. gGuiW := 80
  37. gGuiH := 28
  38.  
  39. gPosX := Ceil(gScreen[1] * 0.008)
  40. gPosY := Ceil(gScreen[2] * 0.47)
  41.  
  42. ui.push(new Window("gui_nova", gPosX, gPosY, gGuiW, gGuiH, ui_theme, 3.132))
  43. ui[1].new_text("Cooldown", "f: nova", "auto", "title", "dadada")
  44. ui[1].show()
  45. return
  46.  
  47. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  48. ;;               Hotkeys               ;;
  49. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  50. global toggleAnemic := false
  51.  
  52. AfkNova:
  53.    WinGet, winId ,, A
  54.  
  55.     loop
  56.     {
  57.         SetTimer, AnomalySpamSrc, Delete
  58.  
  59.         if toggleAnemic
  60.         {
  61.             Sleep 200
  62.             SendInput, {Blind}{%aimKey%}
  63.             SendInput, {Blind}{%meleeKey%}
  64.             lSleep(58+minSleepTime)
  65.         }
  66.        
  67.         if (shouldAltTab)
  68.             WinActivate, ahk_exe Warframe.x64.exe
  69.         SendInput, {Blind}{%shoot2Key%}
  70.         ; SendInput {Blind}{%aimKey% Down}
  71.         ; Sleep 100
  72.         ; SendInput {Blind}{%aimKey% Up}
  73.  
  74.         ; SendInput {Blind}{%shiftKey%}
  75.         ; Sleep 100
  76.         ; SendInput {Blind}{%sKey% Down}
  77.         ; Sleep 30
  78.         ; SendInput {Blind}{%crouchKey%}
  79.         ; Sleep 30
  80.         ; SendInput {Blind}{%sKey% Up}
  81.         ; Sleep 550
  82.  
  83.         SendInput {Blind}{%secondAKey%} ; For mag skill
  84.         Sleep 700
  85.         SendInput {Blind}{%fourthAKey%}
  86.         Sleep 1000
  87.  
  88.         if shouldAltTab
  89.             WinActivate, ahk_id %winId%
  90.         else
  91.             if toggleAnemic
  92.                 SetTimer, AnomalySpamSrc, 1
  93.  
  94.         afkTimer := 0
  95.         SetTimer, UpdateAftTimer, 1000
  96.         Sleep cooldownInSec * 1000
  97.  
  98.         WinGet, winId ,, A
  99.     }
  100. return
  101.  
  102. AnomalySpam:
  103.    toggleAnemic := !toggleAnemic
  104.     SetTimer, AnomalySpamSrc, % toggleAnemic ? 1 : "Off"
  105. return
  106.  
  107. AnomalySpamSrc:
  108.    SendInput, {Blind}{%operatorKey%}
  109.     lSleep(450)
  110.     SendInput, {Blind}{%aimKey%}
  111.     SendInput, {Blind}{%meleeKey%}
  112.     lSleep(58+minSleepTime)
  113. return
  114.  
  115. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  116. ;;               Timers                ;;
  117. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  118. UpdateAftTimer:
  119.    afkTimer += 1
  120.     timeDisplay := cooldownInSec - afkTimer
  121.  
  122.     if (timeDisplay <= 0)
  123.     {
  124.         SetTimer, UpdateAftTimer, off
  125.         ui[1].edit_text("Cooldown", "xx")
  126.         return
  127.     }
  128.  
  129.     ui[1].edit_text("Cooldown", timeDisplay)
  130. return
  131.  
  132. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  133. ;;                Misc                 ;;
  134. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  135. *Insert::reload
  136. *Del::exitapp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement