#include samp.ahk
#SingleInstance, force
!1::
showDialog(1, "Заголовок", "Текст", "Кнопка")
Input, txt, V, {Enter}
if (GetKeyState("Enter", "P")) {
AddChatMessage("Вот текст: " txt)
}
if (GetKeyState("ESC", "P")) && (isDialogOpen()) {
AddChatMessage("Ты нажал ESC")
}
return