Guide menu ▾

Macros

Filling in a server login form with a macro

Logging in on servers that ask for the password in an on-screen form: filling it in with the form card in the panel, the .dialog command, and a macro that fills it in on every connection.

Last updated: November 16, 2026

Some servers do not ask you to type /login in the chat; they open a form (a window) on screen instead: a password box and buttons such as Log in and Cancel. The form usually arrives while the bot is still connecting, before it enters the world, so a /login macro with the On join trigger does not help here.

1. Read the form in the console

Start the bot. When the server shows the form, the whole form is written to the console:

Sunucu bir form gösterdi: Giriş
Kutu 'password' (metin): Şifre
[1] Giriş Yap (dynamic/custom)
[2] İptal (dynamic/custom)
Doldurmak için: .dialog <buton no> <anahtar>=<değer> ...
Console lineWhat does it mean?Where is it used?
Sunucu bir form gösterdi: Giriş (the server showed a form)The form's title.The trigger's Form title field
Kutu 'password' (metin): Şifre (a text box)A box to fill in. The name in quotes is the box's key; the text at the end is only a label.The key in the step's Boxes section
[1] Giriş Yap (a button)A button that can be pressed, and its number.The step's Button to press field

2. Filling it in with the form card in the panel (easiest)

When the bot gets a form, a form card opens on the bot's page, right below the console. The card shows the form as in the game: the title, the boxes and the numbered buttons. The console keeps working as before; the card is only a convenience.

  1. 1Type the values in the boxes.
  2. 2Click the button you want (e.g. [1] Log in) or press Enter; Enter presses the first button.
  3. 3The card also writes the command it sent to the console as it is: [panel] > .dialog 1 password=secret.

3. Filling it in by hand from the console

While the form is open, type into the message box of the console. The bot enters the password in the box and presses the button:

.dialog 1 password=sifren
  • .dialog - writes the open form to the console again.
  • .dialog 2 - presses button 2 (e.g. Cancel) without filling in any box.
  • .dialog kapat - closes the form (when the form allows it; like the Esc key).
  • Separate several boxes with spaces: .dialog 1 password=secret confirm=secret
  • Put a password with spaces in quotes: .dialog 1 password="my secret"

Filling it in by hand has to be repeated on every connection: when the bot reconnects, the form comes again. The lasting solution is a macro.

4. Filling it in automatically with a macro

  1. 1On the Tools → Macros page create a New macro. If you pick Fill in the login form among the templates, the trigger and the step come ready; you only type your password.
  2. 2Choose When the server shows a form as the trigger. In the Form title field type the title you saw in the console (e.g. Giriş); left empty, it runs for every form.
  3. 3Add the Add step → Interaction → Answer the form step.
  4. 4Click Quick fill → Login form: a password box is added. Type your password in the field on the right. If the box has another name, change the key on the left to the name in the console.
  5. 5In the Button to press field enter the number of the login button (usually 1).
  6. 6Save the macro, assign it to the bot on the bot's Macros tab and restart the bot.
OrderStepSetting
1TriggerWhen the server shows a form, form title: Giriş
2Answer the formButton to press: 1; box password = your password

Every time the bot connects, the macro runs as soon as the form arrives, enters the password and presses the button; the console shows Forma cevap gönderildi: Giriş Yap (answer sent) and the bot enters the world.

First join: the register form

If the account is not registered on the server yet, most servers first show a Register form, which asks for the password twice:

Sunucu bir form gösterdi: Kayıt Ol
Kutu 'password' (metin): Şifre
Kutu 'confirm' (metin): Şifreyi Onayla
[1] Kayıt Ol (dynamic/custom)
[2] İptal (dynamic/custom)
OrderStepSetting
1TriggerWhen the server shows a form, form title: Kayıt
2Answer the formQuick fill → Register form; button 1; password and confirm = the same password

Password safety

  • A command sent from the form card is written to the console in full, password included; keep this in mind when you share the console with others.
  • The bot does not write the password to the console while filling in the form; only the name of the pressed button shows there.
  • If you share the macro in the community, the box values are removed; others only see the box names (password=).
  • When you type .dialog by hand, the password may stay in the panel console's history; prefer the macro for regular use.

Troubleshooting

SymptomCause and fix
The macro does not run, the form stays openThe form title filter may not match the title in the console. Copy the title from the console exactly or leave the field empty. Make sure the macro is assigned to the bot and the bot engine is 3.5.
The form keeps coming backThe password is wrong or the box name is off, so the server shows the form again. Check the password and the box key in the console.
The card warns "Enter the box value"A box has no value. Type the password or delete the unneeded box with ✕.
The console says "Bu düğme bir komut çalıştırır..." (this button runs a command)This button sends a command that only works once in the world; it cannot be pressed before the bot enters. Try the other button of the form.
The connection drops with a timeoutThe form was not answered. Add the macro or fill in the form from the console with .dialog.

Frequently asked questions

No form appears and the server asks for /login. What should I do?

That server does not use a form. Use the automatic /login macro on the [Macro recipes](hazir-makro-tarifleri) page.

Does this work on the 3.0 bot engine?

No. Forms and the Answer the form step are supported only on the 3.5 bot engine.

Is it safe to put my password in a macro?

The password is kept only in your macro, is never written to the console and is not shared if you publish the macro in the community. Still, we recommend a password you do not use anywhere else for this server.

Filling in a server login form with a macro — AFKBot