Перейти к содержимому
Бунтовые биты

Бунтовые биты

  • Дом
  • Новости
  • Путеводители
  • Видео-гиды
  • Примечания к патчу
  • Сообщить о нарушении
  • Переключить форму поиска

Холодный волшебник – How to Automate Everything Using AutoHotkey Script

Опубликовано 06/09/2023 К МАШИРОС Без комментариев на Холодный волшебник – How to Automate Everything Using AutoHotkey Script
  • Заголовок: Холодный волшебник
  • Дата выпуска:
  • Разработчик:
  • Издатель:
Информация о холостом мастерстве все еще неполной. Пожалуйста, помогите нам заполнить детали игры, используя это контактная форма.

Looking to avoid the constant need for mouse clicks to unlock achievements? Fed up with the hassle of changing spell sets and equipment repeatedly? Sick of the tedious process of hitting space, clicking four specific areas, and then hitting space again? Exhausted by numerous other time-consuming tasks?

Хорошо, your search ends here. I have developed some scripts that can streamline various aspects of your gameplay, saving you from personally enduring these tiresome tasks.

Чтобы следовать этому руководству, you will need to have AutoHotkey installed (это бесплатно, кстати). Не волнуйся—I’ll explain everything else in the sections below, and it’s going to significantly simplify your gameplay experience.

Введение

This guide aims to assist you in automating certain aspects of the game that you may find bothersome. We will be utilizing scripts, but they won’t be in the form of executable files. You have the freedom to edit the scripts yourself, ensuring that no code is concealed from you.

If you have any uncertainties about the function of a particular element, you can refer to the documentation for clarification.

Our tool of choice is AutoHotkey. Although it may not be the simplest program to learn, we’re fortunate to have chatGPT to help us out. What an incredible time we live in, верно?

По сути, AutoHotkey enables the creation of macros for hotkeys, while also incorporating various coding language structures such as loops, if-else statements, и многое другое.

В любом случае, let’s move forward because, like you, I tend to skip introductions as well.

How to Handle Scripts in General

To avoid repetitive writing, I will provide the following steps for creating a new script. These instructions should be followed each time you wish to create a script, and it is assumed that you have already installed AutoHotkey.

  1. Begin by creating a new notepad file.
  2. Open the newly created file and input the following content
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

F6::ExitApp
F5::Перезагрузить

The initial three lines consist of default configurations. Although their exact purpose might relate to stability and compatibility, their specific functionalities are not clear. The third line, which ensures that the working directory corresponds to the script’s location, can be excluded if desired.

Следующий, we establish the first two hotkeys. F6 is assigned to exit the script, while F5 is designated to reload it. You have the flexibility to modify these hotkeys according to your preference.

3. Alter the file extension from .txt to .ahk.

By modifying the file extension, the notepad file is transformed into a script. To execute the script, simply double-click on it. Pressing F6 will halt its execution, while pressing F5 will run it again (in case any changes have been made). To make edits to the script, right-click on it and choose to open it with notepad. Кроме того, any Integrated Development Environment (IDE) can also be used for editing purposes.

AutoClicker

Upon triggering the designated hotkey, this script will immobilize your mouse cursor at its current position and initiate a clicking action at an interval of 5 миллисекунды.

с::StartClicks()

StartClicks(){
CoordMode, Мышь, Screen  
MouseGetPos, Экспос, ypos  
Loop
  {
    Нажмите, %xpos%, %ypos%  
    Sleep, 5
    Если(GetKeyState("ты", "П"))
    Перерыв
  }
}

Нажав кнопку “с” ключ, the following actions will take place:

  • The script will establish coordinates, which are relative to the screen or have a similar function. You can directly copy and paste this line of code.
  • It will retrieve the x and y coordinates of the mouse cursor.
  • A loop will commence, executing clicks on the aforementioned coordinates and then pausing for 5 миллисекунды.
  • If the user presses the “ты” ключ, the script will cease performing the clicking action.

Feel free to modify these instructions as needed. Remember that pressing F6 at any time will promptly terminate the script, utilizing the functionality we included in step 1.

AutoCollect Dust

This is my typical routine whenever I engage in dust collection. Первый, I press the space key, then I click on the bowls, и наконец, I press the space key again. Here is the corresponding code for this process:

а::autoCollect()

autoCollect(){
  Mousegetpos, Экспос, ypos 
    Send, {Космос}
    Спать, 100
    Нажмите, 1330, 630  
    Спать, 50
    Нажмите, 1389, 849  
    Спать, 50
    Нажмите, 516, 624
    Спать, 50
    Нажмите, 447, 845
    Спать, 50
    Отправлять, {Космос}
    Мысли, Экспос, ypos
  Return
}

Please keep in mind that the provided coordinates are specific to my screen setup. Например, the initial click targets the bowl located at the top right.

The functionality of this script is quite simple; it emulates the actions you would perform manually. After executing the task, it restores the cursor to its original position.

To simplify your day, I have included a script below that records the coordinates of your mouse and displays them in a message box.

Ф1::logmouse()

logmouse(){
    Mousegetpos, МышьX, MouseY
    MsgBox, %MouseX% %MouseY%
Return
}

Utilize this script to determine the precise coordinates of the bowls, eliminating the need for guesswork. It allows you to identify the exact positions with accuracy.

Alternate Between Spell Sets

There have been numerous instances where I’ve repetitively pressed Z1 and Z2 quickly to gather voids and other items in order to rapidly gain character experience after entering the realm. This process can now be automated with the following script.

It is important to note that this script only switches between two predefined spellsets of your choosing.

с::startZeds()

startZeds() {
  Send P2
  Send {Z Down}

  петля{
  Отправлять {2 Вниз}
  Спать 50
  Отправлять {2 Вверх}
  Спать 50
  Отправлять {3 Вниз}
  Спать 50
  Отправлять {3 Вверх}
  Спать 50
  Если(GetKeyState("ты", "П")){
        Отправлять {Z Up}
        Перерыв
        }
  }
}

Let’s proceed with an explanation of the script’s functionality. В моей настройке, I have designated set 2 for my void equipment. Поэтому, the script begins by sending the command P2 to equip that specific set.

Кроме того, I have assigned my two desired spellsets to slots 2 и 3. Следовательно, you can observe the presence of the numbers 2 и 3 in the script.

The script initiates by pressing and holding the Z key continuously. It then enters a loop where it performs the following sequence: нажатие 2, выпуск 2, нажатие 3, and finally releasing 3.

The approach may appear somewhat unconventional, but I had to adopt this method due to certain issues in the game. Тем не менее, I can confirm that this approach functions reliably.

Feel free to customize the numbers or make any necessary adjustments according to your preferences and requirements.

AutoBuy and Upgrade

I employ this script when exiling to expedite the process of purchasing sources and upgrades. Кроме того, it proves beneficial during burst activities, eliminating the need for continuous manual input such as pressing shift+up and B repeatedly while standing idle.

F12::prep()

prep() {
    Отправлять, {LShift Down}
    Спать, 100
    петля{
    Отправлять, {Вверх}
    Спать, 50
    Отправлять, B
    Sleep, 50
    Если(GetKeyState("ты", "П")){
        Отправлять, {LShift Up}
        Перерыв
        }
    }
}

As evident, the script maintains the left shift key in a pressed state while continually triggering the up arrow and B key inputs. To cease this loop, simply press the “ты” ключ, which releases the left shift key and halts the script. Для удобства, I have assigned the F12 key for this purpose, as it is infrequently used and serves as a memorable shortcut.

It is crucial to remember to stop this script when utilizing other scripts since it keeps the shift button pressed down. Failure to do so may result in unintentional modification of spell sets or conflicting actions if used in conjunction with similar scripts.

Change Sets and Equipments Fast

This script aims to streamline the process of swiftly switching between spell sets and equipment, particularly when they are assigned to the same number. By synchronizing the spell set and equipment numbers, this script simplifies the task and facilitates efficient changes to both simultaneously.

Ф1::setAny(1)
Ф2::setAny(2)
F3::setAny(3)

setAny(число) {
    Отправлять {P Down}
    Спать 50
    Отправлять {%number% Down}
    Спать 50
    Отправлять {P Up}
    Спать 50
    Отправлять {%number% Up}
    Спать 50

    Отправлять {Z Down}
    Спать 50
    Отправлять {%number% Down}
    Спать 50
    Отправлять {Z Up}
    Спать 50
    Отправлять {%number% Up}
    Спать 50
}

The usage of this script is straightforward. Pressing F1 will select spellset 1 and equipment set 1. Сходным образом, pressing F2 will select spellset 2 and equipment set 2, и так далее.

While it would be more straightforward under normal circumstances, Idle Wizard has a peculiar behavior where the game encounters issues unless the “press key down, release key” method is followed. Как ни странно, the game stores sets in different numbers even when the “сдвиг” key is not pressed. Although the reason behind this behavior remains unknown, this script provides a workaround to ensure proper functionality.

Это все, чем мы делимся сегодня для этого. Холодный волшебник гид. Это руководство было первоначально создано и написано МАШИРОС. На случай, если нам не удастся обновить это руководство, вы можете найти последнее обновление, следуя этому связь.

Если вы считаете, что какой-либо контент на этом сайте нарушает ваши права, включая ваши права интеллектуальной собственности, пожалуйста, свяжитесь с нами немедленно, используя нашу контактную форму.
Путеводители Теги:Холодный волшебник

Навигация по публикациям

Предыдущий пост: Как исправить падение Idle Wizard FPS, Лаг, и проблемы с заиканием
Следующий пост: How to Fix Rough Justice: ’84 Crashing, Сбой при запуске, и проблемы с замораживанием

Оставить ответ Отменить ответ

Ваш адрес электронной почты не будет опубликован. Обязательные поля отмечены *

  • Заголовок: Холодный волшебник
  • Дата выпуска:
  • Разработчик:
  • Издатель:
Информация о холостом мастерстве все еще неполной. Пожалуйста, помогите нам заполнить детали игры, используя это контактная форма.

Отказ от ответственности

Весь цитируемый контент взят из соответствующих источников.. Если вы считаете, что мы использовали ваш контент без разрешения, обязательно свяжитесь с нами, и мы отнесемся к этому серьезно.
  • О нас
  • Связаться с нами
  • политика конфиденциальности
  • Условия использования

Авторское право © 2025 Бунтовые биты.

Питаться от Пресс-книга новостей Тема WordPress