Помогите сделать из АХК луа пожалуйста, буду благодарен, желательно чтобы когда сворачиваешь работал.

Kto-toezzzzhe

Новичок
Автор темы
2
0
Помогите сделать из этого АХК-> луа:
F3::
Loop 999999999999999
{
SendMessage, 0x50,, 0x4190419,, A
SendInput {LButton}
Sleep 55
SendInput {Enter}
}
Return

F4::
Reload
return
 

tfornik

Известный
310
224
Помогите сделать из этого АХК-> луа:
Lua:
require 'lib.moonloader'
local vkeys = require('vkeys')

function main()
    while not isSampAvailable() do wait(100) end
    while true do wait(0)
    sampAddChatMessage('Запущен', -1)
 
 
    while true do
        wait(0)
 
        if isKeyJustPressed(VK_F3) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() then
            sampAddChatMessage('A', 0x4190419)
            setVirtualKeyDown(1, true)
            wait(55)
            setVirtualKeyDown(13, false)
        end
        if isKeyJustPressed(VK_F4) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() then
            thisScript():reload()
        end
    end
end
Если говнокод простите
Я старался
 
  • Эм
Реакции: YarikVL

denubi

Потрачен
106
34
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Lua:
require 'lib.moonloader'
local vkeys = require('vkeys')

function main()
    while not isSampAvailable() do wait(100) end
    while true do wait(0)
    sampAddChatMessage('Запущен', -1)
 
 
    while true do
        wait(0)
 
        if isKeyJustPressed(VK_F3) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() then
            sampAddChatMessage('A', 0x4190419)
            setVirtualKeyDown(1, true)
            wait(55)
            setVirtualKeyDown(13, false)
        end
        if isKeyJustPressed(VK_F4) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() then
            thisScript():reload()
        end
    end
end
Если говнокод простите
Я старался
script_author забыл братишка какжее
 
  • Ха-ха
Реакции: Sadow

YarikVL

Известный
Проверенный
4,820
1,827
Lua:
require 'lib.moonloader'
local vkeys = require('vkeys')

function main()
    while not isSampAvailable() do wait(100) end
    while true do wait(0)
    sampAddChatMessage('Запущен', -1)
 
 
    while true do
        wait(0)
 
        if isKeyJustPressed(VK_F3) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() then
            sampAddChatMessage('A', 0x4190419)
            setVirtualKeyDown(1, true)
            wait(55)
            setVirtualKeyDown(13, false)
        end
        if isKeyJustPressed(VK_F4) and not sampIsChatInputActive() and not sampIsDialogActive() and not isPauseMenuActive() then
            thisScript():reload()
        end
    end
end
Если говнокод простите
Я старался
Крашнется, подправил вот:
Lua:
require 'lib.moonloader'

function main()
    while not isSampAvailable() do wait(100) end
    sampAddChatMessage('Запущен', -1)
    while true do
        wait(0)
        if not sampIsCursorActive() then
            if wasKeyPressed(VK_F3) then
                sampAddChatMessage('A', 0x4190419) --на счет правильности написания цвета не уверен
                setVirtualKeyDown(1, true)
                wait(30)
                setVirtualKeyDown(1, false)
                wait(55)
                setVirtualKeyDown(VK_RETURN, true)
                wait(30)
                setVirtualKeyDown(VK_RETURN, false)
            if wasKeyPressed(VK_F4) then
                thisScript():reload()
            end
        end
    end
end
не в тот раздел
Так кинул бы жб - модеры переносят.