AHK to select multiple items from a dialogbox

NF18

Новичок
Автор темы
2
0
Hi guys. I need help with writing AHK bind to select multiple items from a dialog box when I press 'x' key

When I press 'x' - it will type /locker -> and select option 3, and then again it will type /locker -> and select option 7

Is it possible?
 

Ninthmoon

Известный
463
127
SendChat("text") - If you want to send a message on behalf of the player

Addchatmessage("text") - If you want to send a message to the player from the script.

P.S. i use google translator
он скорее всего имеет ввиду, чтобы после первого нажатия "X" ввело /locker и выбрало 3 пункт в открывшимся окне от сервера сампа, и после следующего нажатия и ввода /locker оно выбрало 7 пункт.
я попробую реализовать
Activation: Alt + X
Not perfect implementation but working correctly
AutoHotKey:
#IfWinActive GTA:SA:MP
a := 0
!x::
Send, {f6}/locker{enter}
Sleep, 25
if (a < 1)
{
    Loop, 2
    {
        Send, {Up}
        Sleep, 25
    }
    Loop, 2
    {
        Send, {Down}
        Sleep, 25
    }
    Send, {Enter}
    a := 1
}
else
{
    Loop, 2
    {
        Send, {Up}
        Sleep, 25
    }
    Loop, 6
    {
        Send, {Down}
        Sleep, 25
    }
    Send, {Enter}
    a := 0
}
Return
 
Последнее редактирование: