[AHK] Помогаю/пишу AHK скрипты на заказ[Бесплатно]
Мамкин_Аватаркин
Дата: Понедельник, 29.06.2015, 19:17 | Сообщение # 91
Боец
Сообщений: 89
Статус: Offline
Цитата MacWord (
)
Название скрипта:RP Police Advance RP Какую работу должен выполнять скрипт: Типо ПКМ на чела, жму допустим C и он отыгравает рп и надевает наручники, также надо чтоб он сажал в тачку чела с отыгровкой Кнопка активации(можно написать hotkey - т.е. вы сами будете задавать кнопку при запуске):Hotkey Нужно ли при запуске программы добавлять программу в автозапуск? Нет
Тебе в клео раздел.
Мои темы: Приобретаю ваши аккаунты по разумной цене Приобрету вашу ПУ Приобрету ваши виртуальные средства О себе: ♠ Kashtanov Roma ♠ 17 years old ♠ Student SSTU
Lockry
Дата: Понедельник, 29.06.2015, 19:57 | Сообщение # 92
Боец
Сообщений: 88
Статус: Offline
Сделал скрипт, но не работает в нём 2-я строка. Не понимаю что к чему. Помогите пожалуйста. С меня +
Код
#include samp.ahk Gui, Add, Hotkey, x12 y20 w110 h20 vKey, Gui, Add, Hotkey, x12 y50 w110 h20 vKey1, Gui, Add, Hotkey, x12 y80 w110 h20 , Gui, Add, Hotkey, x12 y110 w110 h20 , Gui, Add, Edit, x142 y20 w300 h20 vN, Gui, Add, Edit, x142 y50 w300 h20 vR, Gui, Add, Edit, x142 y80 w300 h20 vT, Gui, Add, Edit, x142 y110 w300 h20 vG, Gui, Add, Button, x92 y160 w300 h100 gOK, OK Gui, Add, Button, x92 y160 w300 h100 gSTART, OK Gui, Show, w479 h379, Untitled GUI return GuiClose: ExitApp return GuiControlGet, N OK: HotKey, %key%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key%, Active, On, UseErrorLevel return Active: id := getClosestPlayerId() sendinput {f6}%n% %id%{enter} return START: HotKey, %key1%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key1%, Active1, On, UseErrorLevel return Active1: id := getClosestPlayerId() sendinput {f6}%r% %id%{enter} return
Samp udf (Если нужен)
Сообщение отредактировал Lockry - Понедельник, 29.06.2015, 19:57
Demy
Дата: Понедельник, 29.06.2015, 20:19 | Сообщение # 93
Бывалый
Сообщений: 422
Статус: Offline
Lockry , у тебя две кнопки с разными метками и одинаковым именем размещены в одном месте, поэтому работает только первая из них. Код
Gui, Add, Button, x92 y160 w300 h100 gOK, OK Gui, Add, Button, x92 y160 w300 h100 gSTART, OK
Работает только Код
Gui, Add, Button, x92 y160 w300 h100 gOK, OK
Добавлено (29.06.2015, 20:19) --------------------------------------------- Цитата Мамкин_Аватаркин (
)
Тебе в клео раздел.
Это с помощью UDFa можно сделать... MacWord , напиши РП отыгровку и команды (в тачку посадить, наручники и тд).
AutoReporter / http://cheat-master.ru/forum/150-486717-1 Finder / http://cheat-master.ru/forum/160-497245-1 DLQ Binder / http://cheat-master.ru/forum/150-594163-1 У ТЕБЯ ЕСТЬ ИДЕЯ ДЛЯ ПРОГРАММЫ, НО САМ ТЫ НЕ МОЖЕШЬ НАПИСАТЬ КОД? ПИШИ МНЕ
Сообщение отредактировал Demy - Понедельник, 29.06.2015, 20:19
Lockry
Дата: Понедельник, 29.06.2015, 20:40 | Сообщение # 94
Боец
Сообщений: 88
Статус: Offline
Цитата Demy (
)
Lockry, у тебя две кнопки с разными метками и одинаковым именем размещены в одном месте, поэтому работает только первая из них. Код Gui, Add, Button, x92 y160 w300 h100 gOK, OK Gui, Add, Button, x92 y160 w300 h100 gSTART, OK Работает только Код Gui, Add, Button, x92 y160 w300 h100 gOK, OK
А ну окей, но как исправить? Ну тоесть сделать одну общую кнопку.
Сообщение отредактировал Lockry - Понедельник, 29.06.2015, 20:41
Demy
Дата: Понедельник, 29.06.2015, 21:04 | Сообщение # 95
Бывалый
Сообщений: 422
Статус: Offline
Это вот объединить Код
OK: HotKey, %key%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key%, Active, On, UseErrorLevel return START: HotKey, %key1%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key1%, Active1, On, UseErrorLevel return
Приблизительно так получится. Код
OK: HotKey, %key%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key%, Active, On, UseErrorLevel HotKey, %key1%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key1%, Active1, On, UseErrorLevel return
И вместо Код
Gui, Add, Button, x92 y160 w300 h100 gOK, OK Gui, Add, Button, x92 y160 w300 h100 gSTART, OK
Это Код
Gui, Add, Button, x92 y160 w300 h100 gOK, OK
AutoReporter / http://cheat-master.ru/forum/150-486717-1 Finder / http://cheat-master.ru/forum/160-497245-1 DLQ Binder / http://cheat-master.ru/forum/150-594163-1 У ТЕБЯ ЕСТЬ ИДЕЯ ДЛЯ ПРОГРАММЫ, НО САМ ТЫ НЕ МОЖЕШЬ НАПИСАТЬ КОД? ПИШИ МНЕ
Сообщение отредактировал Demy - Понедельник, 29.06.2015, 21:05
Lockry
Дата: Понедельник, 29.06.2015, 21:59 | Сообщение # 96
Боец
Сообщений: 88
Статус: Offline
Demy , Спасибо. А теперь как сделать что бы сохранялись команды и кнопки ? [
Сообщение отредактировал Lockry - Понедельник, 29.06.2015, 22:04
Demy
Дата: Понедельник, 29.06.2015, 22:59 | Сообщение # 97
Бывалый
Сообщений: 422
Статус: Offline
Lockry , и совет на будущее: не создавай переменных с непонятным именем, ибо разобраться сложно. (Временные переменные можно). Код
#include samp.ahk Gui, Add, Hotkey, x12 y20 w110 h20 vHotkey1, ; Нумеровать в правильном порядке! Gui, Add, Hotkey, x12 y50 w110 h20 vHotkey2, Gui, Add, Hotkey, x12 y80 w110 h20 , Gui, Add, Hotkey, x12 y110 w110 h20 , Gui, Add, Edit, x142 y20 w300 h20 vCommand1, ; Это так же в правильном Gui, Add, Edit, x142 y50 w300 h20 vCommand2, Gui, Add, Edit, x142 y80 w300 h20, Gui, Add, Edit, x142 y110 w300 h20, Gui, Add, Button, x92 y160 w300 h100 gOK, OK Gui, Show, w479 h379, Untitled GUI return GuiClose: ExitApp OK: Gui, Submit, NoHide FileDelete, Save.ini FileAppend,, Save.ini HotKey, %key%, Off, UseErrorLevel HotKey, %key%, Active1, On, UseErrorLevel HotKey, %key1%, Off, UseErrorLevel HotKey, %key1%, Active2, On, UseErrorLevel Loop 2 ; 2 - число пар для сохранения { Command := Command%A_Index% Hotkey := Hotkey%A_Index% IniWrite, %Command%, Save.ini, Main, %Hotkey% } return Active1: id := getClosestPlayerId() sendinput {f6}%Command1% %id%{enter} return Active2: id := getClosestPlayerId() sendinput {f6}%Command2% %id%{enter} return
AutoReporter / http://cheat-master.ru/forum/150-486717-1 Finder / http://cheat-master.ru/forum/160-497245-1 DLQ Binder / http://cheat-master.ru/forum/150-594163-1 У ТЕБЯ ЕСТЬ ИДЕЯ ДЛЯ ПРОГРАММЫ, НО САМ ТЫ НЕ МОЖЕШЬ НАПИСАТЬ КОД? ПИШИ МНЕ
Lockry
Дата: Понедельник, 29.06.2015, 23:10 | Сообщение # 98
Боец
Сообщений: 88
Статус: Offline
Почему в скрипте после нажатия кнопки Старт он сворачивается?
Код
#include samp.ahk #IfWinActive GTA:SA:MP menu, tray, NoStandard menu, tray, add , Выйти Gui, 50:Add, Hotkey, x12 y40 w110 h20 vKey1, Gui, 50:Add, Hotkey, x12 y70 w110 h20 vKey2, Gui, 50:Add, Hotkey, x12 y100 w110 h20 vKey3, Gui, 50:Add, Hotkey, x12 y130 w110 h20 vKey4, Gui, 50:Add, Hotkey, x12 y160 w110 h20 vKey5, Gui, 50:Add, Hotkey, x12 y190 w110 h20 vKey6, Gui, 50:Add, Hotkey, x12 y220 w110 h20 vKey7, Gui, 50:Add, Hotkey, x12 y250 w110 h20 vKey8, Gui, 50:Add, Hotkey, x12 y280 w110 h20 vKey9, Gui, 50:Add, Hotkey, x12 y310 w110 h20 vKey10, Gui, 50:Add, Hotkey, x12 y340 w110 h20 vKey11, Gui, 50:Add, Hotkey, x12 y370 w110 h20 vKey12, Gui, 50:Add, Hotkey, x12 y400 w110 h20 vKey13, Gui, 50:Add, Edit, x142 y40 w310 h20 vQ, Gui, 50:Add, Edit, x142 y70 w310 h20 vW, Gui, 50:Add, Edit, x142 y100 w310 h20 vE, Gui, 50:Add, Edit, x142 y130 w310 h20 vR, Gui, 50:Add, Edit, x142 y160 w310 h20 vT, Gui, 50:Add, Edit, x142 y190 w310 h20 vY, Gui, 50:Add, Edit, x142 y220 w310 h20 vU, Gui, 50:Add, Edit, x142 y250 w310 h20 vI, Gui, 50:Add, Edit, x142 y280 w310 h20 vO, Gui, 50:Add, Edit, x142 y310 w310 h20 vP, Gui, 50:Add, Edit, x142 y340 w310 h20 vA, Gui, 50:Add, Edit, x142 y370 w310 h20 vS, Gui, 50:Add, Edit, x142 y400 w310 h20 vD, Gui, 50:Add, Button, x182 y430 w100 h30 gOK, Старт Gui, 50:Add, Button, x12 y470 w100 h30 , Button1 Gui, 50:Add, Button, x122 y470 w100 h30 , Button2 Gui, 50:Add, Button, x232 y470 w100 h30 , Button3 Gui, 50:Add, Button, x342 y470 w100 h30 , Закрыть Gui, 50:Add, Button, x390 y440 w45 h30 gInfo, Info Gui, 50:Show, w460 h503, 123 Gui, 50:Add, Text, x12 y20 w110 h30 , Клавиша Gui, 50:Add, Text, x142 y20 w310 h30 , Команда return OK: HotKey, %key1%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key1%, Active1, On, UseErrorLevel HotKey, %key2%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key2%, Active2, On, UseErrorLevel HotKey, %key3%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key3%, Active3, On, UseErrorLevel HotKey, %key4%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key4%, Active4, On, UseErrorLevel HotKey, %key5%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key5%, Active5, On, UseErrorLevel HotKey, %key6%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key6%, Active6, On, UseErrorLevel HotKey, %key7%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key7%, Active7, On, UseErrorLevel HotKey, %key8%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key8%, Active8, On, UseErrorLevel HotKey, %key9%, Off, UseErrorLevel Gui, Submit, 8NoHide HotKey, %key9%, Active9, On, UseErrorLevel HotKey, %key10%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key10%, Active10, On, UseErrorLevel HotKey, %key11%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key11%, Active11, On, UseErrorLevel HotKey, %key12%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key12%, Active12, On, UseErrorLevel HotKey, %key13%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key13%, Active13, On, UseErrorLevel return Active1: id := getClosestPlayerId() sendinput {f6}%q% %id%{enter} return Active2: id := getClosestPlayerId() sendinput {f6}%w% %id%{enter} return Active3: id := getClosestPlayerId() sendinput {f6}%e% %id%{enter} return Active4: id := getClosestPlayerId() sendinput {f6}%r% %id%{enter} return Active5: id := getClosestPlayerId() sendinput {f6}%t% %id%{enter} return Active6: id := getClosestPlayerId() sendinput {f6}%y% %id%{enter} return Active7: id := getClosestPlayerId() sendinput {f6}%u% %id%{enter} return Active8: id := getClosestPlayerId() sendinput {f6}%i% %id%{enter} return Active9: id := getClosestPlayerId() sendinput {f6}%o% %id%{enter} return Active10: id := getClosestPlayerId() sendinput {f6}%p% %id%{enter} return Active11: id := getClosestPlayerId() sendinput {f6}%a% %id%{enter} return Active12: id := getClosestPlayerId() sendinput {f6}%s% %id%{enter} return Active13: id := getClosestPlayerId() sendinput {f6}%d% %id%{enter} return Info: MsgBox, 0, Информация, [29.06.2015]`nНаписан скрипт. Ждите обновление <img src="http://s95.ucoz.net/sm/2/smile.gif" border="0" align="absmiddle" alt="smile" /> return Выйти: ExitApp return
Demy
Дата: Понедельник, 29.06.2015, 23:20 | Сообщение # 99
Бывалый
Сообщений: 422
Статус: Offline
Lockry, Gui, Submit, NoHide можно писать один раз.... Не работает, потому что ты опечатку допустил: Gui, Submit, 8 NoHide Добавлено (29.06.2015, 23:20) --------------------------------------------- И ещё: ты интерфейс делал с номером 50, а Gui, Submit делается для дефолтного окна. Ps. Gui, 50: Submit, NoHide
AutoReporter / http://cheat-master.ru/forum/150-486717-1 Finder / http://cheat-master.ru/forum/160-497245-1 DLQ Binder / http://cheat-master.ru/forum/150-594163-1 У ТЕБЯ ЕСТЬ ИДЕЯ ДЛЯ ПРОГРАММЫ, НО САМ ТЫ НЕ МОЖЕШЬ НАПИСАТЬ КОД? ПИШИ МНЕ
Сообщение отредактировал Demy - Понедельник, 29.06.2015, 23:18
Lockry
Дата: Понедельник, 29.06.2015, 23:20 | Сообщение # 100
Боец
Сообщений: 88
Статус: Offline
Demy , Ну я так сделал. На твоих примера я к сожелению не чего не понял Вот если что нормальный скрипт.
Код
#include samp.ahk #IfWinActive GTA:SA:MP menu, tray, NoStandard menu, tray, add , Выйти Gui, 50:Add, Hotkey, x12 y40 w110 h20 vKey1, Gui, 50:Add, Hotkey, x12 y70 w110 h20 vKey2, Gui, 50:Add, Hotkey, x12 y100 w110 h20 vKey3, Gui, 50:Add, Hotkey, x12 y130 w110 h20 vKey4, Gui, 50:Add, Hotkey, x12 y160 w110 h20 vKey5, Gui, 50:Add, Hotkey, x12 y190 w110 h20 vKey6, Gui, 50:Add, Hotkey, x12 y220 w110 h20 vKey7, Gui, 50:Add, Hotkey, x12 y250 w110 h20 vKey8, Gui, 50:Add, Hotkey, x12 y280 w110 h20 vKey9, Gui, 50:Add, Hotkey, x12 y310 w110 h20 vKey10, Gui, 50:Add, Hotkey, x12 y340 w110 h20 vKey11, Gui, 50:Add, Hotkey, x12 y370 w110 h20 vKey12, Gui, 50:Add, Hotkey, x12 y400 w110 h20 vKey13, Gui, 50:Add, Edit, x142 y40 w310 h20 vComanda1, Gui, 50:Add, Edit, x142 y70 w310 h20 vComanda2, Gui, 50:Add, Edit, x142 y100 w310 h20 vComanda3, Gui, 50:Add, Edit, x142 y130 w310 h20 vComanda4, Gui, 50:Add, Edit, x142 y160 w310 h20 vComanda5, Gui, 50:Add, Edit, x142 y190 w310 h20 vComanda6, Gui, 50:Add, Edit, x142 y220 w310 h20 vComanda7, Gui, 50:Add, Edit, x142 y250 w310 h20 vComanda8, Gui, 50:Add, Edit, x142 y280 w310 h20 vComanda9, Gui, 50:Add, Edit, x142 y310 w310 h20 vComanda10, Gui, 50:Add, Edit, x142 y340 w310 h20 vComanda11, Gui, 50:Add, Edit, x142 y370 w310 h20 vComanda12, Gui, 50:Add, Edit, x142 y400 w310 h20 vComanda13, Gui, 50:Add, Button, x182 y430 w100 h30 gOK, Старт Gui, 50:Add, Button, x12 y470 w100 h30 , Button1 Gui, 50:Add, Button, x122 y470 w100 h30 , Button2 Gui, 50:Add, Button, x232 y470 w100 h30 , Button3 Gui, 50:Add, Button, x342 y470 w100 h30 , Закрыть Gui, 50:Add, Button, x390 y440 w45 h30 gInfo, Info Gui, 50:Show, w460 h503, 123 Gui, 50:Add, Text, x12 y20 w110 h30 , Клавиша Gui, 50:Add, Text, x142 y20 w310 h30 , Команда return OK: HotKey, %key1%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key1%, Active1, On, UseErrorLevel HotKey, %key2%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key2%, Active2, On, UseErrorLevel HotKey, %key3%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key3%, Active3, On, UseErrorLevel HotKey, %key4%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key4%, Active4, On, UseErrorLevel HotKey, %key5%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key5%, Active5, On, UseErrorLevel HotKey, %key6%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key6%, Active6, On, UseErrorLevel HotKey, %key7%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key7%, Active7, On, UseErrorLevel HotKey, %key8%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key8%, Active8, On, UseErrorLevel HotKey, %key9%, Off, UseErrorLevel Gui, Submit, 8NoHide HotKey, %key9%, Active9, On, UseErrorLevel HotKey, %key10%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key10%, Active10, On, UseErrorLevel HotKey, %key11%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key11%, Active11, On, UseErrorLevel HotKey, %key12%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key12%, Active12, On, UseErrorLevel HotKey, %key13%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key13%, Active13, On, UseErrorLevel return Active1: id := getClosestPlayerId() sendinput {f6}%Comanda1% %id%{enter} return Active2: id := getClosestPlayerId() sendinput {f6}%Comanda2% %id%{enter} return Active3: id := getClosestPlayerId() sendinput {f6}%Comanda3% %id%{enter} return Active4: id := getClosestPlayerId() sendinput {f6}%Comanda4% %id%{enter} return Active5: id := getClosestPlayerId() sendinput {f6}%Comanda5% %id%{enter} return Active6: id := getClosestPlayerId() sendinput {f6}%Comanda6% %id%{enter} return Active7: id := getClosestPlayerId() sendinput {f6}%Comand7% %id%{enter} return Active8: id := getClosestPlayerId() sendinput {f6}%Comanda8% %id%{enter} return Active9: id := getClosestPlayerId() sendinput {f6}%Comanda9% %id%{enter} return Active10: id := getClosestPlayerId() sendinput {f6}%Comanda10% %id%{enter} return Active11: id := getClosestPlayerId() sendinput {f6}%Comanda11% %id%{enter} return Active12: id := getClosestPlayerId() sendinput {f6}%Comanda12% %id%{enter} return Active13: id := getClosestPlayerId() sendinput {f6}%Comanda13% %id%{enter} return Info: MsgBox, 0, Информация, [29.06.2015]`nНаписан скрипт. Ждите обновление <img src="http://s95.ucoz.net/sm/2/smile.gif" border="0" align="absmiddle" alt="smile" /> return Выйти: ExitApp return
Demy
Дата: Понедельник, 29.06.2015, 23:32 | Сообщение # 101
Бывалый
Сообщений: 422
Статус: Offline
HotKey, %key1%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key1%, Active1, On, UseErrorLevel HotKey, %key2%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key2%, Active2, On, UseErrorLevel HotKey, %key3%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key3%, Active3, On, UseErrorLevel HotKey, %key4%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key4%, Active4, On, UseErrorLevel HotKey, %key5%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key5%, Active5, On, UseErrorLevel HotKey, %key6%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key6%, Active6, On, UseErrorLevel HotKey, %key7%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key7%, Active7, On, UseErrorLevel HotKey, %key8%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key8%, Active8, On, UseErrorLevel HotKey, %key9%, Off, UseErrorLevel Gui, Submit, 8NoHide ; Вот ошибка HotKey, %key9%, Active9, On, UseErrorLevel HotKey, %key10%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key10%, Active10, On, UseErrorLevel HotKey, %key11%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key11%, Active11, On, UseErrorLevel HotKey, %key12%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key12%, Active12, On, UseErrorLevel HotKey, %key13%, Off, UseErrorLevel Gui, Submit, NoHide HotKey, %key13%, Active13, On, UseErrorLevel return Active1: id := getClosestPlayerId() sendinput {f6}%Comanda1% %id%{enter} return Active2: id := getClosestPlayerId() sendinput {f6}%Comanda2% %id%{enter} return Active3: id := getClosestPlayerId() sendinput {f6}%Comanda3% %id%{enter} return Active4: id := getClosestPlayerId() sendinput {f6}%Comanda4% %id%{enter} return Active5: id := getClosestPlayerId() sendinput {f6}%Comanda5% %id%{enter} return Active6: id := getClosestPlayerId() sendinput {f6}%Comanda6% %id%{enter} return Active7: id := getClosestPlayerId() sendinput {f6}%Comand7% %id%{enter} return Active8: id := getClosestPlayerId() sendinput {f6}%Comanda8% %id%{enter} return Active9: id := getClosestPlayerId() sendinput {f6}%Comanda9% %id%{enter} return Active10: id := getClosestPlayerId() sendinput {f6}%Comanda10% %id%{enter} return Active11: id := getClosestPlayerId() sendinput {f6}%Comanda11% %id%{enter} return Active12: id := getClosestPlayerId() sendinput {f6}%Comanda12% %id%{enter} return Active13: id := getClosestPlayerId() sendinput {f6}%Comanda13% %id%{enter} return Info: MsgBox, 0, Информация, [29.06.2015]`nНаписан скрипт. Ждите обновление <img src="http://s95.ucoz.net/sm/2/smile.gif" border="0" align="absmiddle" alt="smile" /> return Выйти: ExitApp return Добавлено (29.06.2015, 23:32) --------------------------------------------- Но это не единственная ошибка. Юзай этот код: Код
#include samp.ahk #IfWinActive GTA:SA:MP menu, tray, NoStandard menu, tray, add , Выйти Gui, 50:Add, Hotkey, x12 y40 w110 h20 vKey1, Gui, 50:Add, Hotkey, x12 y70 w110 h20 vKey2, Gui, 50:Add, Hotkey, x12 y100 w110 h20 vKey3, Gui, 50:Add, Hotkey, x12 y130 w110 h20 vKey4, Gui, 50:Add, Hotkey, x12 y160 w110 h20 vKey5, Gui, 50:Add, Hotkey, x12 y190 w110 h20 vKey6, Gui, 50:Add, Hotkey, x12 y220 w110 h20 vKey7, Gui, 50:Add, Hotkey, x12 y250 w110 h20 vKey8, Gui, 50:Add, Hotkey, x12 y280 w110 h20 vKey9, Gui, 50:Add, Hotkey, x12 y310 w110 h20 vKey10, Gui, 50:Add, Hotkey, x12 y340 w110 h20 vKey11, Gui, 50:Add, Hotkey, x12 y370 w110 h20 vKey12, Gui, 50:Add, Hotkey, x12 y400 w110 h20 vKey13, Gui, 50:Add, Edit, x142 y40 w310 h20 vComanda1, Gui, 50:Add, Edit, x142 y70 w310 h20 vComanda2, Gui, 50:Add, Edit, x142 y100 w310 h20 vComanda3, Gui, 50:Add, Edit, x142 y130 w310 h20 vComanda4, Gui, 50:Add, Edit, x142 y160 w310 h20 vComanda5, Gui, 50:Add, Edit, x142 y190 w310 h20 vComanda6, Gui, 50:Add, Edit, x142 y220 w310 h20 vComanda7, Gui, 50:Add, Edit, x142 y250 w310 h20 vComanda8, Gui, 50:Add, Edit, x142 y280 w310 h20 vComanda9, Gui, 50:Add, Edit, x142 y310 w310 h20 vComanda10, Gui, 50:Add, Edit, x142 y340 w310 h20 vComanda11, Gui, 50:Add, Edit, x142 y370 w310 h20 vComanda12, Gui, 50:Add, Edit, x142 y400 w310 h20 vComanda13, Gui, 50:Add, Button, x182 y430 w100 h30 gOK, Старт Gui, 50:Add, Button, x12 y470 w100 h30 , Button1 Gui, 50:Add, Button, x122 y470 w100 h30 , Button2 Gui, 50:Add, Button, x232 y470 w100 h30 , Button3 Gui, 50:Add, Button, x342 y470 w100 h30 , Закрыть Gui, 50:Add, Button, x390 y440 w45 h30 gInfo, Info Gui, 50:Show, w460 h503, 123 Gui, 50:Add, Text, x12 y20 w110 h30 , Клавиша Gui, 50:Add, Text, x142 y20 w310 h30 , Команда return OK: Gui, 50: Submit, NoHide HotKey, %key1%, Off, UseErrorLevel HotKey, %key1%, Active1, On, UseErrorLevel HotKey, %key2%, Off, UseErrorLevel HotKey, %key2%, Active2, On, UseErrorLevel HotKey, %key3%, Off, UseErrorLevel HotKey, %key3%, Active3, On, UseErrorLevel HotKey, %key4%, Off, UseErrorLevel HotKey, %key4%, Active4, On, UseErrorLevel HotKey, %key5%, Off, UseErrorLevel HotKey, %key5%, Active5, On, UseErrorLevel HotKey, %key6%, Off, UseErrorLevel HotKey, %key6%, Active6, On, UseErrorLevel HotKey, %key7%, Off, UseErrorLevel HotKey, %key7%, Active7, On, UseErrorLevel HotKey, %key8%, Off, UseErrorLevel HotKey, %key8%, Active8, On, UseErrorLevel HotKey, %key9%, Off, UseErrorLevel HotKey, %key9%, Active9, On, UseErrorLevel HotKey, %key10%, Off, UseErrorLevel HotKey, %key10%, Active10, On, UseErrorLevel HotKey, %key11%, Off, UseErrorLevel HotKey, %key11%, Active11, On, UseErrorLevel HotKey, %key12%, Off, UseErrorLevel HotKey, %key12%, Active12, On, UseErrorLevel HotKey, %key13%, Off, UseErrorLevel HotKey, %key13%, Active13, On, UseErrorLevel return Active1: id := getClosestPlayerId() sendinput {f6}%Comanda1% %id%{enter} return Active2: id := getClosestPlayerId() sendinput {f6}%Comanda2% %id%{enter} return Active3: id := getClosestPlayerId() sendinput {f6}%Comanda3% %id%{enter} return Active4: id := getClosestPlayerId() sendinput {f6}%Comanda4% %id%{enter} return Active5: id := getClosestPlayerId() sendinput {f6}%Comanda5% %id%{enter} return Active6: id := getClosestPlayerId() sendinput {f6}%Comanda6% %id%{enter} return Active7: id := getClosestPlayerId() sendinput {f6}%Comand7% %id%{enter} return Active8: id := getClosestPlayerId() sendinput {f6}%Comanda8% %id%{enter} return Active9: id := getClosestPlayerId() sendinput {f6}%Comanda9% %id%{enter} return Active10: id := getClosestPlayerId() sendinput {f6}%Comanda10% %id%{enter} return Active11: id := getClosestPlayerId() sendinput {f6}%Comanda11% %id%{enter} return Active12: id := getClosestPlayerId() sendinput {f6}%Comanda12% %id%{enter} return Active13: id := getClosestPlayerId() sendinput {f6}%Comanda13% %id%{enter} return Info: MsgBox, 0, Информация, [29.06.2015]`nНаписан скрипт. Ждите обновление <img src="http://s95.ucoz.net/sm/2/smile.gif" border="0" align="absmiddle" alt="smile" /> return Выйти: ExitApp return
AutoReporter / http://cheat-master.ru/forum/150-486717-1 Finder / http://cheat-master.ru/forum/160-497245-1 DLQ Binder / http://cheat-master.ru/forum/150-594163-1 У ТЕБЯ ЕСТЬ ИДЕЯ ДЛЯ ПРОГРАММЫ, НО САМ ТЫ НЕ МОЖЕШЬ НАПИСАТЬ КОД? ПИШИ МНЕ
Сообщение отредактировал Demy - Понедельник, 29.06.2015, 23:32
Lockry
Дата: Понедельник, 29.06.2015, 23:42 | Сообщение # 102
Боец
Сообщений: 88
Статус: Offline
Demy , Ну за это больше спасибо. Код оптимизировал. Но как сделать что бы настройки все сохранялись в setting.ini? На твоих примерах я не понял Вот новый код
Код
#include samp.ahk #NoTrayIcon #IfWinActive GTA:SA:MP Gui, 50:Add, Hotkey, x12 y40 w110 h20 vKey1, Gui, 50:Add, Hotkey, x12 y70 w110 h20 vKey2, Gui, 50:Add, Hotkey, x12 y100 w110 h20 vKey3, Gui, 50:Add, Hotkey, x12 y130 w110 h20 vKey4, Gui, 50:Add, Hotkey, x12 y160 w110 h20 vKey5, Gui, 50:Add, Hotkey, x12 y190 w110 h20 vKey6, Gui, 50:Add, Hotkey, x12 y220 w110 h20 vKey7, Gui, 50:Add, Hotkey, x12 y250 w110 h20 vKey8, Gui, 50:Add, Hotkey, x12 y280 w110 h20 vKey9, Gui, 50:Add, Hotkey, x12 y310 w110 h20 vKey10, Gui, 50:Add, Hotkey, x12 y340 w110 h20 vKey11, Gui, 50:Add, Hotkey, x12 y370 w110 h20 vKey12, Gui, 50:Add, Hotkey, x12 y400 w110 h20 vKey13, Gui, 50:Add, Edit, x142 y40 w310 h20 vComanda1, Gui, 50:Add, Edit, x142 y70 w310 h20 vComanda2, Gui, 50:Add, Edit, x142 y100 w310 h20 vComanda3, Gui, 50:Add, Edit, x142 y130 w310 h20 vComanda4, Gui, 50:Add, Edit, x142 y160 w310 h20 vComanda5, Gui, 50:Add, Edit, x142 y190 w310 h20 vComanda6, Gui, 50:Add, Edit, x142 y220 w310 h20 vComanda7, Gui, 50:Add, Edit, x142 y250 w310 h20 vComanda8, Gui, 50:Add, Edit, x142 y280 w310 h20 vComanda9, Gui, 50:Add, Edit, x142 y310 w310 h20 vComanda10, Gui, 50:Add, Edit, x142 y340 w310 h20 vComanda11, Gui, 50:Add, Edit, x142 y370 w310 h20 vComanda12, Gui, 50:Add, Edit, x142 y400 w310 h20 vComanda13, Gui, 50:Add, Button, x182 y430 w100 h30 gOK, Старт Gui, 50:Add, Button, x12 y470 w100 h30 gReloadgui, Перезапустить Gui, 50:Add, Button, x122 y470 w100 h30 gSave, Сохранить Gui, 50:Add, Button, x232 y470 w100 h30 gMingui, Свернуть Gui, 50:Add, Button, x342 y470 w100 h30 gExit, Выход Gui, 50:Show, w460 h503, 123 Gui, 50:Add, Text, x12 y20 w110 h20 , Клавиша Gui, 50:Add, Text, x142 y20 w310 h20 , Команда return OK: Gui, Submit, NoHide HotKey, %key1%, Off, UseErrorLevel HotKey, %key1%, Active1, On, UseErrorLevel HotKey, %key2%, Off, UseErrorLevel HotKey, %key2%, Active2, On, UseErrorLevel HotKey, %key3%, Off, UseErrorLevel HotKey, %key3%, Active3, On, UseErrorLevel HotKey, %key4%, Off, UseErrorLevel HotKey, %key4%, Active4, On, UseErrorLevel HotKey, %key5%, Off, UseErrorLevel HotKey, %key5%, Active5, On, UseErrorLevel HotKey, %key6%, Off, UseErrorLevel HotKey, %key6%, Active6, On, UseErrorLevel HotKey, %key7%, Off, UseErrorLevel HotKey, %key7%, Active7, On, UseErrorLevel HotKey, %key8%, Off, UseErrorLevel HotKey, %key8%, Active8, On, UseErrorLevel HotKey, %key9%, Off, UseErrorLevel HotKey, %key9%, Active9, On, UseErrorLevel HotKey, %key10%, Off, UseErrorLevel HotKey, %key10%, Active10, On, UseErrorLevel HotKey, %key11%, Off, UseErrorLevel HotKey, %key11%, Active11, On, UseErrorLevel HotKey, %key12%, Off, UseErrorLevel HotKey, %key12%, Active12, On, UseErrorLevel HotKey, %key13%, Off, UseErrorLevel HotKey, %key13%, Active13, On, UseErrorLevel return Active1: id := getClosestPlayerId() sendinput {f6}%Comanda1% %id%{enter} return Active2: id := getClosestPlayerId() sendinput {f6}%Comanda2% %id%{enter} return Active3: id := getClosestPlayerId() sendinput {f6}%Comanda3% %id%{enter} return Active4: id := getClosestPlayerId() sendinput {f6}%Comanda4% %id%{enter} return Active5: id := getClosestPlayerId() sendinput {f6}%Comanda5% %id%{enter} return Active6: id := getClosestPlayerId() sendinput {f6}%Comanda6% %id%{enter} return Active7: id := getClosestPlayerId() sendinput {f6}%Comand7% %id%{enter} return Active8: id := getClosestPlayerId() sendinput {f6}%Comanda8% %id%{enter} return Active9: id := getClosestPlayerId() sendinput {f6}%Comanda9% %id%{enter} return Active10: id := getClosestPlayerId() sendinput {f6}%Comanda10% %id%{enter} return Active11: id := getClosestPlayerId() sendinput {f6}%Comanda11% %id%{enter} return Active12: id := getClosestPlayerId() sendinput {f6}%Comanda12% %id%{enter} return Active13: id := getClosestPlayerId() sendinput {f6}%Comanda13% %id%{enter} return Выйти: ExitApp return Exit: ExitApp return Mingui: Gui, Minimize return Save: Gui, Submit, NoHide return Reloadgui: Reload return
Сообщение отредактировал Lockry - Понедельник, 29.06.2015, 23:43
Demy
Дата: Понедельник, 29.06.2015, 23:56 | Сообщение # 103
Бывалый
Сообщений: 422
Статус: Offline
Lockry , Код
#include samp.ahk #NoTrayIcon #IfWinActive GTA:SA:MP Gui, 50:Add, Hotkey, x12 y40 w110 h20 vKey1, Gui, 50:Add, Hotkey, x12 y70 w110 h20 vKey2, Gui, 50:Add, Hotkey, x12 y100 w110 h20 vKey3, Gui, 50:Add, Hotkey, x12 y130 w110 h20 vKey4, Gui, 50:Add, Hotkey, x12 y160 w110 h20 vKey5, Gui, 50:Add, Hotkey, x12 y190 w110 h20 vKey6, Gui, 50:Add, Hotkey, x12 y220 w110 h20 vKey7, Gui, 50:Add, Hotkey, x12 y250 w110 h20 vKey8, Gui, 50:Add, Hotkey, x12 y280 w110 h20 vKey9, Gui, 50:Add, Hotkey, x12 y310 w110 h20 vKey10, Gui, 50:Add, Hotkey, x12 y340 w110 h20 vKey11, Gui, 50:Add, Hotkey, x12 y370 w110 h20 vKey12, Gui, 50:Add, Hotkey, x12 y400 w110 h20 vKey13, Gui, 50:Add, Edit, x142 y40 w310 h20 vComanda1, Gui, 50:Add, Edit, x142 y70 w310 h20 vComanda2, Gui, 50:Add, Edit, x142 y100 w310 h20 vComanda3, Gui, 50:Add, Edit, x142 y130 w310 h20 vComanda4, Gui, 50:Add, Edit, x142 y160 w310 h20 vComanda5, Gui, 50:Add, Edit, x142 y190 w310 h20 vComanda6, Gui, 50:Add, Edit, x142 y220 w310 h20 vComanda7, Gui, 50:Add, Edit, x142 y250 w310 h20 vComanda8, Gui, 50:Add, Edit, x142 y280 w310 h20 vComanda9, Gui, 50:Add, Edit, x142 y310 w310 h20 vComanda10, Gui, 50:Add, Edit, x142 y340 w310 h20 vComanda11, Gui, 50:Add, Edit, x142 y370 w310 h20 vComanda12, Gui, 50:Add, Edit, x142 y400 w310 h20 vComanda13, Gui, 50:Add, Button, x182 y430 w100 h30 gOK, Старт Gui, 50:Add, Button, x12 y470 w100 h30 gReloadgui, Перезапустить Gui, 50:Add, Button, x122 y470 w100 h30 gSave, Сохранить Gui, 50:Add, Button, x232 y470 w100 h30 gMingui, Свернуть Gui, 50:Add, Button, x342 y470 w100 h30 gExit, Выход Gui, 50:Show, w460 h503, 123 Gui, 50:Add, Text, x12 y20 w110 h20 , Клавиша Gui, 50:Add, Text, x142 y20 w310 h20 , Команда return OK: Gui, 50: Submit, NoHide Loop 13 ; 13 - число пар для сохранения { Command := Comanda%A_Index% Key := Key%A_Index% IniWrite, %Command%, Settings.ini, Main, %Key% } HotKey, %key1%, Off, UseErrorLevel HotKey, %key1%, Active1, On, UseErrorLevel HotKey, %key2%, Off, UseErrorLevel HotKey, %key2%, Active2, On, UseErrorLevel HotKey, %key3%, Off, UseErrorLevel HotKey, %key3%, Active3, On, UseErrorLevel HotKey, %key4%, Off, UseErrorLevel HotKey, %key4%, Active4, On, UseErrorLevel HotKey, %key5%, Off, UseErrorLevel HotKey, %key5%, Active5, On, UseErrorLevel HotKey, %key6%, Off, UseErrorLevel HotKey, %key6%, Active6, On, UseErrorLevel HotKey, %key7%, Off, UseErrorLevel HotKey, %key7%, Active7, On, UseErrorLevel HotKey, %key8%, Off, UseErrorLevel HotKey, %key8%, Active8, On, UseErrorLevel HotKey, %key9%, Off, UseErrorLevel HotKey, %key9%, Active9, On, UseErrorLevel HotKey, %key10%, Off, UseErrorLevel HotKey, %key10%, Active10, On, UseErrorLevel HotKey, %key11%, Off, UseErrorLevel HotKey, %key11%, Active11, On, UseErrorLevel HotKey, %key12%, Off, UseErrorLevel HotKey, %key12%, Active12, On, UseErrorLevel HotKey, %key13%, Off, UseErrorLevel HotKey, %key13%, Active13, On, UseErrorLevel return Active1: id := getClosestPlayerId() sendinput {f6}%Comanda1% %id%{enter} return Active2: id := getClosestPlayerId() sendinput {f6}%Comanda2% %id%{enter} return Active3: id := getClosestPlayerId() sendinput {f6}%Comanda3% %id%{enter} return Active4: id := getClosestPlayerId() sendinput {f6}%Comanda4% %id%{enter} return Active5: id := getClosestPlayerId() sendinput {f6}%Comanda5% %id%{enter} return Active6: id := getClosestPlayerId() sendinput {f6}%Comanda6% %id%{enter} return Active7: id := getClosestPlayerId() sendinput {f6}%Comand7% %id%{enter} return Active8: id := getClosestPlayerId() sendinput {f6}%Comanda8% %id%{enter} return Active9: id := getClosestPlayerId() sendinput {f6}%Comanda9% %id%{enter} return Active10: id := getClosestPlayerId() sendinput {f6}%Comanda10% %id%{enter} return Active11: id := getClosestPlayerId() sendinput {f6}%Comanda11% %id%{enter} return Active12: id := getClosestPlayerId() sendinput {f6}%Comanda12% %id%{enter} return Active13: id := getClosestPlayerId() sendinput {f6}%Comanda13% %id%{enter} return Выйти: ExitApp return Exit: ExitApp return Mingui: Gui, Minimize return Save: Gui, Submit, NoHide return Reloadgui: Reload return
AutoReporter / http://cheat-master.ru/forum/150-486717-1 Finder / http://cheat-master.ru/forum/160-497245-1 DLQ Binder / http://cheat-master.ru/forum/150-594163-1 У ТЕБЯ ЕСТЬ ИДЕЯ ДЛЯ ПРОГРАММЫ, НО САМ ТЫ НЕ МОЖЕШЬ НАПИСАТЬ КОД? ПИШИ МНЕ
Сообщение отредактировал Demy - Понедельник, 29.06.2015, 23:57
Lockry
Дата: Вторник, 30.06.2015, 00:02 | Сообщение # 104
Боец
Сообщений: 88
Статус: Offline
Demy , Не работает. Только создаёт файл settings.ini в котором только написано [Main]
Demy
Дата: Вторник, 30.06.2015, 00:19 | Сообщение # 105
Бывалый
Сообщений: 422
Статус: Offline
Код
#NoTrayIcon #include samp.ahk Gui, 50:Add, Hotkey, x12 y40 w110 h20 vKey1, Gui, 50:Add, Hotkey, x12 y70 w110 h20 vKey2, Gui, 50:Add, Hotkey, x12 y100 w110 h20 vKey3, Gui, 50:Add, Hotkey, x12 y130 w110 h20 vKey4, Gui, 50:Add, Hotkey, x12 y160 w110 h20 vKey5, Gui, 50:Add, Hotkey, x12 y190 w110 h20 vKey6, Gui, 50:Add, Hotkey, x12 y220 w110 h20 vKey7, Gui, 50:Add, Hotkey, x12 y250 w110 h20 vKey8, Gui, 50:Add, Hotkey, x12 y280 w110 h20 vKey9, Gui, 50:Add, Hotkey, x12 y310 w110 h20 vKey10, Gui, 50:Add, Hotkey, x12 y340 w110 h20 vKey11, Gui, 50:Add, Hotkey, x12 y370 w110 h20 vKey12, Gui, 50:Add, Hotkey, x12 y400 w110 h20 vKey13, Gui, 50:Add, Edit, x142 y40 w310 h20 vComanda1, Gui, 50:Add, Edit, x142 y70 w310 h20 vComanda2, Gui, 50:Add, Edit, x142 y100 w310 h20 vComanda3, Gui, 50:Add, Edit, x142 y130 w310 h20 vComanda4, Gui, 50:Add, Edit, x142 y160 w310 h20 vComanda5, Gui, 50:Add, Edit, x142 y190 w310 h20 vComanda6, Gui, 50:Add, Edit, x142 y220 w310 h20 vComanda7, Gui, 50:Add, Edit, x142 y250 w310 h20 vComanda8, Gui, 50:Add, Edit, x142 y280 w310 h20 vComanda9, Gui, 50:Add, Edit, x142 y310 w310 h20 vComanda10, Gui, 50:Add, Edit, x142 y340 w310 h20 vComanda11, Gui, 50:Add, Edit, x142 y370 w310 h20 vComanda12, Gui, 50:Add, Edit, x142 y400 w310 h20 vComanda13, Gui, 50:Add, Button, x182 y430 w100 h30 gOK, Старт Gui, 50:Add, Button, x12 y470 w100 h30 gReloadgui, Перезапустить Gui, 50:Add, Button, x122 y470 w100 h30 gSave, Сохранить Gui, 50:Add, Button, x232 y470 w100 h30 gMingui, Свернуть Gui, 50:Add, Button, x342 y470 w100 h30 gExit, Выход Gui, 50:Show, w460 h503, 123 Gui, 50:Add, Text, x12 y20 w110 h20 , Клавиша Gui, 50:Add, Text, x142 y20 w310 h20 , Команда return OK: HotKey, %key1%, Off, UseErrorLevel HotKey, %key1%, Active1, On, UseErrorLevel HotKey, %key2%, Off, UseErrorLevel HotKey, %key2%, Active2, On, UseErrorLevel HotKey, %key3%, Off, UseErrorLevel HotKey, %key3%, Active3, On, UseErrorLevel HotKey, %key4%, Off, UseErrorLevel HotKey, %key4%, Active4, On, UseErrorLevel HotKey, %key5%, Off, UseErrorLevel HotKey, %key5%, Active5, On, UseErrorLevel HotKey, %key6%, Off, UseErrorLevel HotKey, %key6%, Active6, On, UseErrorLevel HotKey, %key7%, Off, UseErrorLevel HotKey, %key7%, Active7, On, UseErrorLevel HotKey, %key8%, Off, UseErrorLevel HotKey, %key8%, Active8, On, UseErrorLevel HotKey, %key9%, Off, UseErrorLevel HotKey, %key9%, Active9, On, UseErrorLevel HotKey, %key10%, Off, UseErrorLevel HotKey, %key10%, Active10, On, UseErrorLevel HotKey, %key11%, Off, UseErrorLevel HotKey, %key11%, Active11, On, UseErrorLevel HotKey, %key12%, Off, UseErrorLevel HotKey, %key12%, Active12, On, UseErrorLevel HotKey, %key13%, Off, UseErrorLevel HotKey, %key13%, Active13, On, UseErrorLevel return Active1: id := getClosestPlayerId() sendinput {f6}%Comanda1% %id%{enter} return Active2: id := getClosestPlayerId() sendinput {f6}%Comanda2% %id%{enter} return Active3: id := getClosestPlayerId() sendinput {f6}%Comanda3% %id%{enter} return Active4: id := getClosestPlayerId() sendinput {f6}%Comanda4% %id%{enter} return Active5: id := getClosestPlayerId() sendinput {f6}%Comanda5% %id%{enter} return Active6: id := getClosestPlayerId() sendinput {f6}%Comanda6% %id%{enter} return Active7: id := getClosestPlayerId() sendinput {f6}%Comand7% %id%{enter} return Active8: id := getClosestPlayerId() sendinput {f6}%Comanda8% %id%{enter} return Active9: id := getClosestPlayerId() sendinput {f6}%Comanda9% %id%{enter} return Active10: id := getClosestPlayerId() sendinput {f6}%Comanda10% %id%{enter} return Active11: id := getClosestPlayerId() sendinput {f6}%Comanda11% %id%{enter} return Active12: id := getClosestPlayerId() sendinput {f6}%Comanda12% %id%{enter} return Active13: id := getClosestPlayerId() sendinput {f6}%Comanda13% %id%{enter} return Выйти: ExitApp return Exit: ExitApp return Mingui: Gui, Minimize return Save: Gui, 50: Submit, NoHide FileDelete, Settings.ini FileAppend,,Settings.ini Gui, 50: Submit, NoHide Loop 13 ; 13 - число пар для сохранения { Command := Comanda%A_Index% HotKey := Key%A_Index% If (hotkey<>"") and (command<>"") IniWrite, %command%, Settings.ini, Main, %hotkey% } return Reloadgui: Reload return
AutoReporter / http://cheat-master.ru/forum/150-486717-1 Finder / http://cheat-master.ru/forum/160-497245-1 DLQ Binder / http://cheat-master.ru/forum/150-594163-1 У ТЕБЯ ЕСТЬ ИДЕЯ ДЛЯ ПРОГРАММЫ, НО САМ ТЫ НЕ МОЖЕШЬ НАПИСАТЬ КОД? ПИШИ МНЕ