-
Notifications
You must be signed in to change notification settings - Fork 0
/
IC_Helper2.ahk
62 lines (57 loc) · 2.66 KB
/
IC_Helper2.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#SingleInstance force
;put together with the help from many different people. thanks for all the help.
#HotkeyInterval 1000 ; The default value is 2000 (milliseconds).
#MaxHotkeysPerInterval 70 ; The default value is 70
#NoEnv ; Avoids checking empty variables to see if they are environment variables (recommended for all new scripts). Default behavior for AutoHotkey v2.
;=======================
;Script Optimization
;=======================
SetWorkingDir %A_ScriptDir%
SetWinDelay, 33 ; Sets the delay that will occur after each windowing command, such as WinActivate. (Default is 100)
SetControlDelay, 0 ; Sets the delay that will occur after each control-modifying command. -1 for no delay, 0 for smallest possible delay. The default delay is 20.
;SetKeyDelay, 0 ; Sets the delay that will occur after each keystroke sent by Send or ControlSend. [SetKeyDelay , Delay, PressDuration, Play]
SetBatchLines, -1 ; How fast a script will run (affects CPU utilization).(Default setting is 10ms - prevent the script from using any more than 50% of an idle CPU's time.
; This allows scripts to run quickly while still maintaining a high level of cooperation with CPU sensitive tasks such as games and video capture/playback.
ListLines Off
Process, Priority,, Normal
CoordMode, Mouse, Client
#include %A_ScriptDir%\Classes\_Utilities.ahk
#Include %A_ScriptDir%\Classes\Memory\_MemoryHandler.ahk
#Include %A_ScriptDir%\Classes\_VirtualKeyInputs.ahk
_VirtualKeyInputs.Init("ahk_exe IdleDragons.exe")
#Include %A_ScriptDir%\Classes\_FormationHandler.ahk
#Include %A_ScriptDir%\Classes\_FormationSavesHandler.ahk
#Include %A_ScriptDir%\Classes\_HeroHandler.ahk
#Include %A_ScriptDir%\Classes\_BrivHandler.ahk
#Include %A_ScriptDir%\Classes\_SentryHandler.ahk
#Include %A_ScriptDir%\Classes\_HewHandler.ahk
#Include %A_ScriptDir%\Classes\_ClientHandler.ahk
#Include %A_ScriptDir%\Classes\_IC_ClientHandler.ahk
#Include %A_ScriptDir%\Classes\_IC_FuncLibrary.ahk
#Include %A_ScriptDir%\Classes\_ServerCalls.ahk
#Include %A_ScriptDir%\Classes\_AreaHandler.ahk
#Include %A_ScriptDir%\Classes\_Contained.ahk
System.Refresh()
Funcs := _IC_FuncLibrary.CreateOrGetInstance()
Briv := new _BrivHandler(58)
;Sentry := new _SentryHandler(52)
Hew := new _HewHandler(75)
AreaHandler := new _AreaHandler
AreaHandler.SetAreas()
loop
{
System.Refresh()
Funcs.SetTimeScale(10)
Funcs.SetClickLevel(2000)
;Funcs.BypassBossBag()
if (Briv.HasteStacks < 500)
Briv.HasteStacks := 5000
AreaHandler.SetBackgrounds()
;Sentry.SetOneKill()
If (Hew.SetOneKill() == 1)
{
;_VirtualKeyInputs.Priority("{Right}", "{w}")
;_VirtualKeyInputs.Priority("{Right}", "{q}")
}
sleep, 100
}