Помогите с ahk скриптом

dushik123

Участник
Автор темы
50
3
AutoHotKey:
global file_update := A_C: "Amazing Games\Amazing Russia\amazing\chatlog.txt";
SetTimer, update, 100
return

update:
FileRead, chatlog, % file_update
FileDelete, % file_update
if(RegExMatch(chatlog, "123")) {
    ;; SendInput, {F6}/job{Enter}


}
return

1626989849006.png


1626990006539.png
 

meowprd

Тот самый Котовский
Проверенный
1,280
712
[04:00:25] Kenny_Mccormick [59]: 123
Ты потом сам регулярку допишешь?

AutoHotKey:
#Persistent
global file_update := "C:\Amazing Games\Amazing Russia\amazing\chatlog.txt"
SetTimer, update, 100
return

update:
FileRead, chatlog, % file_update
FileDelete, % file_update
if(RegExMatch(chatlog, "123")) {
    ;; SendInput, {F6}/job{Enter}
}
return
 
  • Нравится
Реакции: dushik123

dushik123

Участник
Автор темы
50
3
Ты потом сам регулярку допишешь?

AutoHotKey:
#Persistent
global file_update := "C:\Amazing Games\Amazing Russia\amazing\chatlog.txt"
SetTimer, update, 100
return

update:
FileRead, chatlog, % file_update
FileDelete, % file_update
if(RegExMatch(chatlog, "tester")) {
    ;; SendInput, {F6}/job{Enter}
}
return
++++