Numpad9:: checkfile = %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt FileDelete %checkfile% FileAppend %checkfile% SendMessage, 0x50,, 0x4190419,, SendInput, {F6}Введите id: {SPASE} Input, id, V I M, {enter} SendInput, {end}+{home}{del}{esc} Sleep, 1000 SendInput, {F6}/me Включил КПК{Enter} Sleep, 1050 Sendinput, {F6}Введите статью: {SPASE} Input, ukrf, V I M, {enter} SendInput {end}+{home}{del}{esc} Keywait , enter , D Sendinput, {F6}/id %id%{Enter} FileRead, info, %checkfile% RegExMatch(info, "Игрок (.*)_(.*)", pname) name = %pname1% family = %pname2% Sleep, 1000 SendInput, {F6}/me Сообщил по рации дистпетчеру приметы преступника{Enter} Sleep, 1050 SendInput, {F6}/do Преступник:%pname1% %pname2% > занесен в базу данных по статье:%ukrf% УК РФ.{Enter} Sleep, 1000 FileRead, Nick,%checkfile% RegExMatch(Nick, "\[([0-9.]*)\]", code, -400) Sleep, 1000 SendInput, {F6}/su %id% %ukrf%{Enter} Sleep, 1000 SendInput, {F6}/do КПК выключен{Enter} Sleep, 1050 return Numpad8:: checkfile = %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt FileDelete %checkfile% FileAppend %checkfile% SendMessage, 0x50,, 0x4190419,, SendInput, {F6}Введите id: {SPASE} Input, id, V I M, {enter} SendInput, {end}+{home}{del}{esc} Sleep, 1000 Sendinput, {F6}/ids %id%{Enter} Sleep, 1000 SendInput, {F6}/me Резким движением отстегнул наручники от пояса и защёлкнул браслеты на %name1% %name2%{Enter} Sleep, 1000 SendInput, {F6}/cuff %id%{Enter} Sleep, 1000 SendInput, {F6}/me Выполнил болевой прием на задерживаемом %name1%, повел его перед собой{Enter} Sleep, 1000 SendInput, {F6}/drag %id% {Enter} Return Вот АХК, не хватило мозгов доделать, помогите те, кто знают
Зачем Вам такое сложное AHK? Держи стандартное: https://forum.gtarp.ru/threads/policija-juzhnogo-autohotkey-dlja-sotrudnikov.819828/