-
Notifications
You must be signed in to change notification settings - Fork 0
/
GemFarm_Final_Run.ahk
36 lines (30 loc) · 1.72 KB
/
GemFarm_Final_Run.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
#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
;logging functions
;#include %A_ScriptDir%\Classes\_classLog.ahk
;global g_Log := new _classLog("Gem Farm")
;global g_LogMemory := new _classLog("Memory Log")
#Include %A_ScriptDir%\Classes\_GemFarmFinal.ahk
g_GemFarm := new _GemFarmFinal(_Utilities.LoadObjectFromJSON(A_LineFile . "\..\GemFarmFinal_Settings.json"))
;OnExit("GemFarmExitApp")
g_GemFarm.GemFarm()
;GemFarmExitApp()
;{
; g_Log.LogStack()
;}