Считывание нажатых клавиш

Статус
В этой теме нельзя размещать новые ответы.

Smer4

Известный
Автор темы
424
51
Ну короче надо считывать нажатые клавиши НАПРИМЕР как в ахк команда "Input"
AHK TO LUA
Код:
PH = 1
HP = 1
IF PH == HP
    input, text, V,{Enter}
MsgBox, % text
return
 
Последнее редактирование:

ШPEK

Известный
1,476
523
1. https://blast.hk/threads/22372/
2.
Lua:
function main()
while not isSampAvailable() do wait(100) end
  while true do
    wait(0)
    if isKeyJustPressed(0x37) then
      sampShowDialog(1, "name", "1 string\n2 string", "1 button", "2 button", 2)
      while true do
        wait(0)
        local res, but, lis, input = sampHasDialogRespond(1)
        if res then
if but == 1 and lis == 0 then
sampAddChatMessage("guy") break
elseif but == 1 and lis == 1 then
sampSendChat("glorified") break
end
else
break
end
end
end
end
end
 
Статус
В этой теме нельзя размещать новые ответы.