- 1,302
- 731
Мне надо ахк для ловли домов на аризоне суприм
В стол заказов.
Мне надо ахк для ловли домов на аризоне суприм
А ето платно?
Понятно а что бесплатно можно тут получить?Разумеется. Такой заказ бесплатно никто делать не будет
не работает, у меня нечего не отображается, даже msgboxAutoHotKey:#SingleInstance force #Persistent #UseHook SetTimer, Update, 50 ChatLog = C:\Users\Ivan\AppData\Roaming\.vimeworld\minigames\logs\latest.txt Update: lastline := GetNewLine(ChatLog) if(RegExMatch(lastline, "\[([0-9]*):([0-9]*):[0-9]*\] \[Client thread\/INFO\]: \[CHAT\] Королевский зомби был повержен!.*", var)) { hour := var1 minute := var2 minute += 20 if(minute > 59) { hour++ minute := minute-60 hour := format("{:02d}", hour) minute := format("{:02d}", minute) } msgbox, Founded time in chatlog: %var1%:%var2%`nNew time: %hour%:%minute% } return GetNewLine(filename) { static old static new if !old { FileGetSize, old, %filename% new := old } while old = new { sleep 100 ;задержка FileGetSize, new, %filename% } old := new Loop, read, %filename% if A_LoopReadLine { last := A_LoopReadLine } return last } !end::ExitApp end::Reload
Обязательно проверь работоспособность.
Строка в чате то хоть есть?не работает, у меня нечего не отображается, даже msgbox
Понятно а что бесплатно можно тут получить?
апвзял основу от сюда https://blast.hk/threads/31713/
и чуть переделал под майн, но не работает. Должен показывать msg box но нечего не происходит.
AutoHotKey:ChatLog = C:\Users\Ivan\AppData\Roaming\.vimeworld\minigames\logs\latest.txt loop { lastline := GetNewLine(ChatLog) var = беру RegExMatch(var, "беру", var) MsgBox % var1 If expression != { MsgBox % var1 } } GetNewLine(filename) { static old static new if !old { FileGetSize, old, %filename% new := old } while old = new { sleep 100 ;задержка FileGetSize, new, %filename% } old := new Loop, read, %filename% if A_LoopReadLine { last := A_LoopReadLine } return last } !end::ExitApp end::Reload
AutoHotKey:#SingleInstance force #Persistent #UseHook SetTimer, Update, 50 ChatLog = C:\Users\Ivan\AppData\Roaming\.vimeworld\minigames\logs\latest.txt Update: lastline := GetNewLine(ChatLog) if(RegExMatch(lastline, "\[([0-9]*):([0-9]*):[0-9]*\] \[Client thread\/INFO\]: \[CHAT\] Королевский зомби был повержен!.*", var)) { hour := var1 minute := var2 minute += 20 if(minute > 59) { hour++ minute := minute-60 hour := format("{:02d}", hour) minute := format("{:02d}", minute) } msgbox, Founded time in chatlog: %var1%:%var2%`nNew time: %hour%:%minute% } return GetNewLine(filename) { static old static new if !old { FileGetSize, old, %filename% new := old } while old = new { sleep 100 ;задержка FileGetSize, new, %filename% } old := new Loop, read, %filename% if A_LoopReadLine { last := A_LoopReadLine } return last } !end::ExitApp end::Reload
Обязательно проверь работоспособность.
Hello, maybe someone could help me with chatlog and responde. i need script that reads GTA:SA:MP chatlog and if it finds like word "bitch" the script sends the command /mute
#IfWinActive GTA:SA:MP
#NoEnv
#SingleInstance, force
#include SAMP.ahk
cl = %A_MyDocuments%\GTA San Andreas User Files\SAMP\chatlog.txt
while(true)
{
FileRead, clog, % cl
if (RegExMatch(clog, "bitch"))
{
FileDelete, % cl
SendChat("/mute")
}
Return
}
This is the error of your Samp-udf, try this[QUOTE = "_ Senya_, post: 394959, member: 102899"]
Код:#IfWinActive GTA: SA: MP #NoEnv #SingleInstance, force #include SAMP.ahk cl =% A_MyDocuments% \ GTA San Andreas User Files \ SAMP \ chatlog.txt while (true) { FileRead, clog,% cl if (RegExMatch (clog, "bitch")) { FileDelete,% cl SendChat ("/ mute") } Return } [/ CODE] [/ QUOTE] [ATTACH type="full" alt="39075"]39075[/ATTACH]
You want to mute was given by id?i pressed on ahk i created with your code nothing happens mmm