Kangaroo 5772 Report post Posted 02/05/18 10:50 AM В 05.07.2016 в 4:52 PM, Kangaroo сказал: Если вы не знаете, что такое AHK и как его использовать - прочтите эту тему. @zyxelxzol Quote Share this post Link to post Share on other sites
Ddoser 0 Report post Posted 02/06/18 03:15 AM В 30.01.2018 в 12:13 AM, Kangaroo сказал: ~RButton & ~LShift::Sendinput {F6}/usedrugs {enter} sleep 1111 Return Так должно быть норм. UPD: исправил Кеныч, а что делать, если попугай не работает? P.S доступ к чатлогу: Этот компьютер>Документы>GTA San Andreas User Files>Samp F2:: loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt { i=%A_Index% } FileReadLine, line, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt, i-1 StringReplace, line, line, !, {!}, ,All StringReplace, line, line, #, {#}, ,All StringReplace, line, line, ^, {^}, ,All StringReplace, line, line, +, {+}, ,All StringTrimLeft, line, line, 11 sendinput, {f6}%line%{enter} return F1:: loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt { i=%A_Index% } FileReadLine, line, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt, i-1 StringTrimLeft, line, line, 11 IfInString, line, : { RegExMatch(line,"\Q: \E(.*)",line) StringTrimLeft, line, line, 2 } StringReplace, line, line, !, {!}, ,All StringReplace, line, line, #, {#}, ,All StringReplace, line, line, ^, {^}, ,All StringReplace, line, line, +, {+}, ,All sendinput, {f6}%line%{enter} return Quote Share this post Link to post Share on other sites
strozza 488 Report post Posted 02/06/18 03:29 AM 13 минуты назад, Ddoser сказал: Кеныч, а что делать, если попугай не работает? P.S доступ к чатлогу: Этот компьютер>Документы>GTA San Andreas User Files>Samp F2:: loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt { i=%A_Index% } FileReadLine, line, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt, i-1 StringReplace, line, line, !, {!}, ,All StringReplace, line, line, #, {#}, ,All StringReplace, line, line, ^, {^}, ,All StringReplace, line, line, +, {+}, ,All StringTrimLeft, line, line, 11 sendinput, {f6}%line%{enter} return F1:: loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt { i=%A_Index% } FileReadLine, line, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt, i-1 StringTrimLeft, line, line, 11 IfInString, line, : { RegExMatch(line,"\Q: \E(.*)",line) StringTrimLeft, line, line, 2 } StringReplace, line, line, !, {!}, ,All StringReplace, line, line, #, {#}, ,All StringReplace, line, line, ^, {^}, ,All StringReplace, line, line, +, {+}, ,All sendinput, {f6}%line%{enter} return Цитата PgDn:: Loop, read, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt { If A_LoopReadLine MY_REPEAT_STRING := A_LoopReadLine MY_CHATLOG := (A_Index-1) } StringTrimLeft, MY_REPEAT_STRING, MY_REPEAT_STRING, 11 StringReplace, MY_REPEAT_STRING, MY_REPEAT_STRING, !, {!}, All StringReplace, MY_REPEAT_STRING, MY_REPEAT_STRING, +, {+}, All StringReplace, MY_REPEAT_STRING, MY_REPEAT_STRING, #, {#}, All StringReplace, MY_REPEAT_STRING, MY_REPEAT_STRING, ^, {^}, All Clipboard := MY_REPEAT_STRING Sendinput {f6}%MY_REPEAT_STRING%^{vk41} return PgUp:: MY_CHATLOG -= 2 FileReadLine, MY_REPEAT_STRING, %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt, %MY_CHATLOG% StringTrimLeft, MY_REPEAT_STRING, MY_REPEAT_STRING, 11 StringReplace, MY_REPEAT_STRING, MY_REPEAT_STRING, !, {!}, All StringReplace, MY_REPEAT_STRING, MY_REPEAT_STRING, +, {+}, All StringReplace, MY_REPEAT_STRING, MY_REPEAT_STRING, #, {#}, All StringReplace, MY_REPEAT_STRING, MY_REPEAT_STRING, ^, {^}, All Clipboard := MY_REPEAT_STRING Sendinput {del}%MY_REPEAT_STRING%^{vk41} return Quote Share this post Link to post Share on other sites
Ddoser 0 Report post Posted 02/06/18 07:56 AM 4 часа назад, strozza сказал: на какую кнопку? Quote Share this post Link to post Share on other sites
Ddoser 0 Report post Posted 02/06/18 08:08 AM 4 часа назад, strozza сказал: всё равно не робит( Quote Share this post Link to post Share on other sites
лошарик2806 0 Report post Posted 02/06/18 01:50 PM Cделай пожалуйста бинд на многорозовое и быстрое нажатие SHIFT Quote Share this post Link to post Share on other sites
Kangaroo 5772 Report post Posted 02/06/18 01:55 PM 4 минуты назад, лошарик2806 сказал: Cделай пожалуйста бинд на многорозовое и быстрое нажатие SHIFT F1:: loop { Send {lshift down} sleep 100 Send {lshift up} } return Quote Share this post Link to post Share on other sites
JackShapard 165 Report post Posted 02/06/18 02:19 PM 6 часов назад, Ddoser сказал: на какую кнопку? Написано же Page Down) Quote Share this post Link to post Share on other sites
Paprikos 78 Report post Posted 02/06/18 03:55 PM (edited) Нужен бинд для /gov, чтобы при открытии окна и выбора времени текст забивался автоматически. Edited 02/06/18 03:56 PM by Paprikos Quote Share this post Link to post Share on other sites
Ddoser 0 Report post Posted 02/06/18 07:23 PM 5 часов назад, JackShapard сказал: Написано же Page Down) ну всё равно не работает Quote Share this post Link to post Share on other sites
JackShapard 165 Report post Posted 02/07/18 07:00 AM 15 часов назад, Paprikos сказал: Нужен бинд для /gov, чтобы при открытии окна и выбора времени текст забивался автоматически. Скинь как выглядит окно с гов Quote Share this post Link to post Share on other sites
Denisz 80 Report post Posted 02/07/18 05:08 PM 10 hours ago, JackShapard said: Скинь как выглядит окно с гов https://imgur.com/a/niBrx Quote Share this post Link to post Share on other sites
JackShapard 165 Report post Posted 02/07/18 07:05 PM В 06.02.2018 в 5:55 PM, Paprikos сказал: Нужен бинд для /gov, чтобы при открытии окна и выбора времени текст забивался автоматически. #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. F3:: stroka1 = Проходит набор в Армию штата на Рядового (2 года в штате), Ефрейтор (3 года в штате). stroka2 = Для вступления требуется знания УаК, устава, пакет документов, быть адекватным. stroka3 = На собеседование желающим прибыть на КПП NGSA ((/gps > Фракции > КПП Военной Базы)). stroka4 = Ждём всех желающих! По вопросам набора обращайтесь на (pjr/sms). sleep 200 Sendinput {enter} sleep 200 SendInput %stroka1%{enter} sleep 200 SendInput {down} sleep 200 SendInput {enter} sleep 200 SendInput %stroka2%{enter} sleep 200 SendInput {down} sleep 200 SendInput {down} sleep 200 SendInput {enter} sleep 200 SendInput %stroka3%{enter} sleep 200 Sendinput {down} sleep 200 Sendinput {down} sleep 200 Sendinput {down} sleep 200 SendInput {enter} sleep 200 SendInput %stroka4%{enter} return 1 Bosco reacted to this Quote Share this post Link to post Share on other sites
JackShapard 165 Report post Posted 02/07/18 07:08 PM 3 минуты назад, JackShapard сказал: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. F3:: stroka1 = Проходит набор в Армию штата на Рядового (2 года в штате), Ефрейтор (3 года в штате). stroka2 = Для вступления требуется знания УаК, устава, пакет документов, быть адекватным. stroka3 = На собеседование желающим прибыть на КПП NGSA ((/gps > Фракции > КПП Военной Базы)). stroka4 = Ждём всех желающих! По вопросам набора обращайтесь на (pjr/sms). sleep 200 Sendinput {enter} sleep 200 SendInput %stroka1%{enter} sleep 200 SendInput {down} sleep 200 SendInput {enter} sleep 200 SendInput %stroka2%{enter} sleep 200 SendInput {down} sleep 200 SendInput {down} sleep 200 SendInput {enter} sleep 200 SendInput %stroka3%{enter} sleep 200 Sendinput {down} sleep 200 Sendinput {down} sleep 200 Sendinput {down} sleep 200 SendInput {enter} sleep 200 SendInput %stroka4%{enter} return p.s надо открыть окно с нужным временем и нажать 1 Bosco reacted to this Quote Share this post Link to post Share on other sites
Kostya_Niger 452 Report post Posted 02/08/18 01:59 PM Вот чуток проще еще кидали раньше. !Numpad6:: stroka_gov1 = Открыт призыв в Армию на звания: stroka_gov2 = Рядовой: 2 года в штате,вод.права,мед.карта,паспорт(Устав); stroka_gov3 = Ефрейтор: 3 года в штате,полный пакет документов (Устав и УаК).(Высокая З/П); stroka_gov4 = Наемники: через заявку на портале штата. Прибыть на КПП Армии. gov_height := (A_ScreenHeight/2.64) loop 4 { final_gov := % stroka_gov%A_Index% MouseClick, Left, A_ScreenWidth/2, gov_height MouseClick, Left, A_ScreenWidth/2, gov_height sleep 150 SendInput %final_gov%{enter} sleep 150 gov_height += (A_ScreenHeight/42.66) } return 1 Bosco reacted to this Quote Share this post Link to post Share on other sites