AHK script for AFK closing of daily tasks l Скрипт AHK для AFK выполнения дейликов
Jul 2, 2025 @ 12:03pm532
English
1 STEP l 1 ШАГ
Download AHK on the official website l Скачайте AHK на официальном сайте
AHK WEBSITE[www.autohotkey.com] l САЙТ AHK[www.autohotkey.com]

AHK WEBSITE[www.autohotkey.com] l САЙТ AHK[www.autohotkey.com]
2 STEP l 2 ШАГ
3 STEP l 3 ШАГ
After you have opened the AHK file in the editor, you must copy and paste the script code. l После того как вы открыли AHK файл в редакторе, вы должны копировать и вставить код скрипта.
-------------------------------------------------------------------------------------------------------
#NoEnv ; Recommended for compatibility improvement.
SendMode Input ; Fast input.
SetWorkingDir %A_ScriptDir% ; Sets the working directory for the script.
toggle := false ; Variable to control the state of the script
stopFlag := false ; Flag to stop execution
; Set hotkey to toggle the script
Insert::
toggle := !toggle ; Toggles the state of toggle to the opposite
if (toggle) {
ToolTip, Script is enabled
stopFlag := false ; Resets the stop flag
; Starts a loop to perform actions
SetTimer, ExecuteActions, 0 ; Starts the timer
} else {
ToolTip, Script is disabled
stopFlag := true ; Sets the stop flag
}
Sleep, 1000
ToolTip ; Removes the tooltip
return
ExecuteActions:
if (stopFlag) {
SetTimer, ExecuteActions, Off ; Turns off the timer
return
}
; Here input the coordinates and actions you want to perform
Click, 1859, 453
Sleep, 500
Click, 379, 357
Sleep, 500
Click, 1272, 312
Sleep, 500
Click, 1477, 100
Sleep, 500
Click, 1849, 76
Sleep, 500
Click, 1461, 930
Sleep, 500
Click, 1775, 211
Sleep, 500
Click, 1789, 878
Sleep, 500
Click, 1770, 769
Sleep, 500
Click, 1761, 656
Sleep, 500
Click, 1765, 546
Sleep, 500
Click, 1781, 442
Sleep, 500
Click, 1780, 326
Sleep, 500
Click, 1862, 69
Sleep, 500
return
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
#NoEnv ; Recommended for compatibility improvement.
SendMode Input ; Fast input.
SetWorkingDir %A_ScriptDir% ; Sets the working directory for the script.
toggle := false ; Variable to control the state of the script
stopFlag := false ; Flag to stop execution
; Set hotkey to toggle the script
Insert::
toggle := !toggle ; Toggles the state of toggle to the opposite
if (toggle) {
ToolTip, Script is enabled
stopFlag := false ; Resets the stop flag
; Starts a loop to perform actions
SetTimer, ExecuteActions, 0 ; Starts the timer
} else {
ToolTip, Script is disabled
stopFlag := true ; Sets the stop flag
}
Sleep, 1000
ToolTip ; Removes the tooltip
return
ExecuteActions:
if (stopFlag) {
SetTimer, ExecuteActions, Off ; Turns off the timer
return
}
; Here input the coordinates and actions you want to perform
Click, 1859, 453
Sleep, 500
Click, 379, 357
Sleep, 500
Click, 1272, 312
Sleep, 500
Click, 1477, 100
Sleep, 500
Click, 1849, 76
Sleep, 500
Click, 1461, 930
Sleep, 500
Click, 1775, 211
Sleep, 500
Click, 1789, 878
Sleep, 500
Click, 1770, 769
Sleep, 500
Click, 1761, 656
Sleep, 500
Click, 1765, 546
Sleep, 500
Click, 1781, 442
Sleep, 500
Click, 1780, 326
Sleep, 500
Click, 1862, 69
Sleep, 500
return
-------------------------------------------------------------------------------------------------------
MANUAL l ИНСТРУКЦИЯ
ENG
To run the script, the game must be opened in full screen mode with a resolution of 1920-1080.
The script can be controlled using the INSERT key. After launching the script and opening the game, press the INSERT key to start the script from the main menu.
To complete the script's actions, press the INSERT key again and wait for the script to finish its cycle.
RUS
Для работы скрипта игра должна быть открыта во весь экран в разрешении 1920-1080.
Управление скриптом производится клавишей INSERT, после запуска скрипта и открытия игры, нажмите клавишу INSERT, для корректной работы запуск скрипта должен осуществляться со стартового меню.
Для завершения действий скрипта необходимо повторно нажать клавишу INSERT и дождаться завершения цикла действий.