Если не рабит попробуй это
F1::
{
ShowDialog("1", "Заголовок", "Текст", "Ok")
while (!GetKeyState("Enter", "P") && !GetKeyState("Esc", "P"))
continue
if (GetKeyState("Enter", "P")) {
sleep 200
txt := readString(hGTA, dwSAMP + 0x12D8F8, 256)
}
AddChatMessage("Ты ввел "txt)
return