-
Notifications
You must be signed in to change notification settings - Fork 0
/
SetModronTargetArea.ahk
27 lines (24 loc) · 1.57 KB
/
SetModronTargetArea.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
#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\_IC_FuncLibrary.ahk
#Include %A_ScriptDir%\Classes\_Contained.ahk
System.Refresh()
Funcs := _IC_FuncLibrary.CreateOrGetInstance()
Funcs.SetModronTargetArea(1951)