ESC F6 menu return LButton time A_TickCount while isDialogOpen if A_Ti

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
~ESC::
~F6::
menu := 0
return
~LButton::
time := A_TickCount
while(isDialogOpen())
{
if (A_TickCount - Time > 500)
{
return
}
}
$~Enter::
sleep, 30
if (isInChat() = 0)
return
sleep 150
dwAddress := dwSAMP + 0x12D8F8
chatInput := readString(hGTA, dwAddress, 512)
writeString(hGTA, dwAddress, "")
if (chatInput="/amenu")
{
menu := 1
showDialog(2,"Главное меню","[1] Настройки мегафона`n[2] Настройки докладов`n[3] Настройка глобального цвета","Закрыть")
return
}
if (menu == 1)
{
menu := 0
line_num := getDialogLineNumber()
line_text := getDialogLine(line_num)
if (line_num = 1)
{
AddChatMessageEx("FFD700","Проверка1")
}
if (line_num = 2)
{
AddChatMessageEx("FFD700","Проверка2")
}
if (line_num = 3)
{
AddChatMessageEx("FFD700","Проверка3")
}
return
}